Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nick.c

    r3a27896 re3e2059  
    186186                   LC_CTYPE being set to something other than C/POSIX. */
    187187                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);
    198190                }
    199191
     
    376368
    377369        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 */
    383370                for (i = 0; nick_lc_chars[i]; i++) {
    384371                        tab[(int) nick_uc_chars[i]] = nick_lc_chars[i];
     372                        tab[(int) nick_lc_chars[i]] = nick_lc_chars[i];
    385373                }
    386374        }
Note: See TracChangeset for help on using the changeset viewer.