diff options
author | Arnavion <arnavion@gmail.com> | 2015-01-31 00:52:31 -0800 |
---|---|---|
committer | Arnavion <arnavion@gmail.com> | 2015-01-31 00:52:31 -0800 |
commit | 1d83610341777ec723f4619b168b1001a8b109ab (patch) | |
tree | 71a8e833e89bcbb370d90334e279563bfcba2491 /src/common/plugin.c | |
parent | 5dde0d7c6d703a6797cbe3af8aa548ba23a1a024 (diff) |
Save iconv converters for input and output in the server.
These are then used with g_convert_with_iconv instead of making it create a new iconv converter every time for the given from-to-encoding pairs.
Diffstat (limited to 'src/common/plugin.c')
-rw-r--r-- | src/common/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c index 5ef20de8..9a1efbec 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -979,7 +979,7 @@ hexchat_command (hexchat_plugin *ph, const char *command) } /* scripts/plugins continue to send non-UTF8... *sigh* */ - command_utf8 = text_invalid_encoding_to_utf8 (command, -1, "UTF-8", NULL); + command_utf8 = text_fixup_invalid_utf8 (command, -1, NULL); handle_command (ph->context, command_utf8, FALSE); g_free (command_utf8); } |