Skip to content

Commit

Permalink
generic: Fix message recoding
Browse files Browse the repository at this point in the history
6c16359 ("generic: rework message processing") compared charset to
utf-8 erroneously.
  • Loading branch information
sthibaul committed Jun 10, 2024
1 parent 6879083 commit 6604db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ int module_speak(gchar * data, size_t bytes, SPDMessageType msgtype)
/* Set the appropriate charset */
assert(generic_msg_language != NULL);
if (generic_msg_language->charset != NULL) {
if (!strcasecmp(generic_msg_language->charset, "utf-8")) {
if (strcasecmp(generic_msg_language->charset, "utf-8") != 0) {
DBG("Recoding from UTF-8 to %s...",
generic_msg_language->charset);
newtmp =
Expand Down

0 comments on commit 6604db5

Please sign in to comment.