Changes in nick.c [3a27896:e3e2059]
Legend:
- Unmodified
- Added
- Removed
-
nick.c
r3a27896 re3e2059 186 186 LC_CTYPE being set to something other than C/POSIX. */ 187 187 if (!(irc && irc->status & IRC_UTF8_NICKS)) { 188 asc = g_convert_with_fallback(part, -1, "ASCII//TRANSLIT", "UTF-8", "", NULL, NULL, NULL); 189 190 if (!asc) { 191 /* If above failed, try again without //TRANSLIT. 192 //TRANSLIT is a GNU iconv special and is not POSIX. 193 Other platforms may not support it. */ 194 asc = g_convert_with_fallback(part, -1, "ASCII", "UTF-8", "", NULL, NULL, NULL); 195 } 196 197 part = asc; 188 part = asc = g_convert_with_fallback(part, -1, "ASCII//TRANSLIT", 189 "UTF-8", "", NULL, NULL, NULL); 198 190 } 199 191 … … 376 368 377 369 if (tab['A'] == 0) { 378 /* initialize table so nonchars are mapped to themselves */379 for (i = 0; i < sizeof(tab); i++) {380 tab[i] = i;381 }382 /* replace uppercase chars with lowercase chars */383 370 for (i = 0; nick_lc_chars[i]; i++) { 384 371 tab[(int) nick_uc_chars[i]] = nick_lc_chars[i]; 372 tab[(int) nick_lc_chars[i]] = nick_lc_chars[i]; 385 373 } 386 374 }
Note: See TracChangeset
for help on using the changeset viewer.