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/ldif.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/ldif.c')
-rw-r--r-- | src/ldif.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -498,19 +498,19 @@ static void ldif_add_value( Ldif_ParsedRec *rec, gchar *tagName, gchar *tagValue val = g_strdup( "" ); } g_strstrip( val ); - if( g_strcasecmp( nm, LDIF_TAG_COMMONNAME ) == 0 ) { + if( g_ascii_strcasecmp( nm, LDIF_TAG_COMMONNAME ) == 0 ) { rec->listCName = g_slist_append( rec->listCName, val ); } - else if( g_strcasecmp( nm, LDIF_TAG_FIRSTNAME ) == 0 ) { + else if( g_ascii_strcasecmp( nm, LDIF_TAG_FIRSTNAME ) == 0 ) { rec->listFName = g_slist_append( rec->listFName, val ); } - else if( g_strcasecmp( nm, LDIF_TAG_LASTNAME ) == 0 ) { + else if( g_ascii_strcasecmp( nm, LDIF_TAG_LASTNAME ) == 0 ) { rec->listLName = g_slist_append( rec->listLName, val ); } - else if( g_strcasecmp( nm, LDIF_TAG_NICKNAME ) == 0 ) { + else if( g_ascii_strcasecmp( nm, LDIF_TAG_NICKNAME ) == 0 ) { rec->listNName = g_slist_append( rec->listNName, val ); } - else if( g_strcasecmp( nm, LDIF_TAG_EMAIL ) == 0 ) { + else if( g_ascii_strcasecmp( nm, LDIF_TAG_EMAIL ) == 0 ) { rec->listAddress = g_slist_append( rec->listAddress, val ); } else { @@ -743,19 +743,19 @@ static void ldif_hash_add_list( GHashTable *table, GSList *list ) { gchar *key = g_strdup( tag ); rec = ldif_create_fieldrec( tag ); - if( g_strcasecmp( tag, LDIF_TAG_COMMONNAME ) == 0 ) { + if( g_ascii_strcasecmp( tag, LDIF_TAG_COMMONNAME ) == 0 ) { rec->reserved = TRUE; } - else if( g_strcasecmp( tag, LDIF_TAG_FIRSTNAME ) == 0 ) { + else if( g_ascii_strcasecmp( tag, LDIF_TAG_FIRSTNAME ) == 0 ) { rec->reserved = TRUE; } - else if( g_strcasecmp( tag, LDIF_TAG_LASTNAME ) == 0 ) { + else if( g_ascii_strcasecmp( tag, LDIF_TAG_LASTNAME ) == 0 ) { rec->reserved = TRUE; } - else if( g_strcasecmp( tag, LDIF_TAG_NICKNAME ) == 0 ) { + else if( g_ascii_strcasecmp( tag, LDIF_TAG_NICKNAME ) == 0 ) { rec->reserved = TRUE; } - else if( g_strcasecmp( tag, LDIF_TAG_EMAIL ) == 0 ) { + else if( g_ascii_strcasecmp( tag, LDIF_TAG_EMAIL ) == 0 ) { rec->reserved = TRUE; } g_hash_table_insert( table, key, rec ); @@ -770,7 +770,7 @@ static void ldif_hash_add_list( GHashTable *table, GSList *list ) { static int ldif_field_compare( gconstpointer ptr1, gconstpointer ptr2 ) { const Ldif_FieldRec *rec1 = ptr1; const Ldif_FieldRec *rec2 = ptr2; - return g_strcasecmp( rec1->tagName, rec2->tagName ); + return g_ascii_strcasecmp( rec1->tagName, rec2->tagName ); } /* @@ -842,7 +842,7 @@ static void ldif_read_tag_list( LdifFile *ldifFile ) { if( tagName ) { /* Add tag to list */ listTags = g_slist_append( listTags, tagName ); - if( g_strcasecmp( tagName, LDIF_TAG_EMAIL ) == 0 ) { + if( g_ascii_strcasecmp( tagName, LDIF_TAG_EMAIL ) == 0 ) { flagMail = TRUE; } } |