diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-10 09:28:05 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-10 09:28:05 +0000 |
commit | 2ce75a37bcca6a5c960c1fb56b530c24de5a8492 (patch) | |
tree | 0c67890575d8e869cef9e8e67e14b12e7959b0d2 /src/jpilot.c | |
parent | 7ac4bf2db5d09d02f9e0e7ca4da691b7bd5ff0d9 (diff) |
fixed Turkish locale problem.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@333 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/jpilot.c')
-rw-r--r-- | src/jpilot.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/jpilot.c b/src/jpilot.c index 624d0f4f..826491b6 100644 --- a/src/jpilot.c +++ b/src/jpilot.c @@ -1291,7 +1291,7 @@ static gboolean jpilot_setup_labels( JPilotFile *pilotFile ) { labelName = convertBuff; } - if( g_strcasecmp( labelName, lbl ) == 0 ) { + if( g_ascii_strcasecmp( labelName, lbl ) == 0 ) { ind = i; break; } @@ -1507,18 +1507,11 @@ static void jpilot_remove_empty( JPilotFile *pilotFile ) { * ============================================================================================ */ gint jpilot_read_data( JPilotFile *pilotFile ) { - const gchar *cur_locale; - name_order = FAMILY_LAST; convert_charcode = FALSE; - cur_locale = conv_get_current_locale(); - - if( g_strncasecmp( cur_locale, "ja", 2 ) == 0 ) { + if( conv_is_ja_locale() ) { name_order = FAMILY_FIRST; - } - - if( conv_get_locale_charset() == C_EUC_JP ) { convert_charcode = TRUE; } @@ -1587,7 +1580,7 @@ gint jpilot_check_label( struct AddressAppInfo *ai, gchar *lblCheck ) { lblName = ai->labels[i]; if( lblName ) { if( strlen( lblName ) ) { - if( g_strcasecmp( lblName, lblCheck ) == 0 ) return i; + if( g_ascii_strcasecmp( lblName, lblCheck ) == 0 ) return i; } } } @@ -1692,7 +1685,7 @@ gboolean jpilot_test_custom_label( JPilotFile *pilotFile, const gchar *labelName if( labelName ) { node = pilotFile->customLabels; while( node ) { - if( g_strcasecmp( labelName, node->data ) == 0 ) { + if( g_ascii_strcasecmp( labelName, node->data ) == 0 ) { retVal = TRUE; break; } |