Changeset 7276


Ignore:
Timestamp:
Dec 5, 2008, 3:31:33 PM (12 years ago)
Author:
charles
Message:

(1.3x gtk) backport #1544: case insensitivity search does not work on cyrillic alphabet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/gtk/tr-window.c

    r7275 r7276  
    318318        case FILTER_TEXT_MODE_FILES:
    319319            for( i=0; i<torInfo->fileCount && !ret; ++i ) {
    320                 pch = g_ascii_strdown( torInfo->files[i].name, -1 );
     320                pch = g_utf8_casefold( torInfo->files[i].name, -1 );
    321321                ret = !text || strstr( pch, text ) != NULL;
    322322                g_free( pch );
     
    325325
    326326        case FILTER_TEXT_MODE_TRACKER:
    327             pch = g_ascii_strdown( torInfo->trackers[0].announce, -1 );
     327            pch = g_utf8_casefold( torInfo->trackers[0].announce, -1 );
    328328            ret = !text || ( strstr( pch, text ) != NULL );
    329329            g_free( pch );
     
    331331
    332332        default: /* NAME */
    333             pch = g_ascii_strdown( torInfo->name, -1 );
     333            pch = g_utf8_casefold( torInfo->name, -1 );
    334334            ret = !text || ( strstr( pch, text ) != NULL );
    335335            g_free( pch );
     
    440440    pch = gtk_editable_get_chars( e, 0, -1 );
    441441    g_free( p->filter_text );
    442     p->filter_text = g_ascii_strdown( pch, -1 );
     442    p->filter_text = g_utf8_casefold( pch, -1 );
    443443    refilter( p );
    444444    g_free( pch );
Note: See TracChangeset for help on using the changeset viewer.