Changeset 3432 for trunk/jons-gtk2-gui

Show
Ignore:
Timestamp:
04/11/03 02:04:48 (6 years ago)
Author:
bostjanlah
Message:

fix a char conversion problem when user's locale is C

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jons-gtk2-gui/src/utilities.cpp

    r3405 r3432  
    4343        else { 
    4444            const char *cs; 
    45             if (g_get_charset(&cs))  
    46         // locale is already utf8 so conversion won't help - we use  
    47         // fallback character set - iso8859-1 
     45            if (g_get_charset(&cs) || strcmp(cs, "ANSI_X3.4-1968") == 0)  
     46        // locale is either already utf8 or ASCII so conversion won't help  
     47                // - we use fallback character set - iso8859-1 
    4848                return g_convert(input_text, len, "UTF-8", "ISO8859-1", &b_in, &b_out, 
    4949                NULL);