Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Leonidas-from-XIV/1020494 to your computer and use it in GitHub Desktop.
Save Leonidas-from-XIV/1020494 to your computer and use it in GitHub Desktop.
XChat sends in IRC/hybrid setting a mix of CP1252 and UTF-8. Make that UTF-8
--- src/common/server.c.old 2011-06-11 13:42:31.126537883 +0200
+++ src/common/server.c 2011-06-11 13:43:14.559870355 +0200
@@ -115,7 +115,7 @@
}
} else
{
- if (using_irc) /* using "IRC" encoding (CP1252/UTF-8 hybrid) */
+ if (0) /* using "IRC" encoding (CP1252/UTF-8 hybrid) */
/* if all chars fit inside CP1252, use that. Otherwise this
returns NULL and we send UTF-8. */
locale = g_convert (buf, len, "CP1252", "UTF-8", 0, &loc_len, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment