Changeset d549f3be26b7e0177a125fb360fb1f7fb2609705

Show
Ignore:
Timestamp:
11/19/07 22:32:46 (9 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1195507966 +0000
git-parent:

[bb9682166445f98eae6c5a52f6b8d04237c4c9ef]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1195507966 +0000
Message:

Force ISO-8859-8 for Hebrew users

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/text/wincp.c

    r4f32396 rd549f3b  
    9898    /* Hebrew (ISO-8859-8) */ 
    9999    if (!locale_match ("he" "iw" "yi", locale)) 
    100         return "CP1255"; // Compatible Microsoft superset 
     100        return "ISO-8859-8"; // CP1255 is reportedly screwed up 
    101101 
    102102    /* Latin-5 Turkish (ISO-8859-9) */ 
     
    205205#else 
    206206    static char buf[16] = ""; 
     207 
    207208    if (buf[0] == 0) 
    208         snprintf (buf, sizeof (buf), "CP%u", GetACP ()); 
     209    { 
     210        int cp = GetACP (); 
     211 
     212        switch (cp) 
     213        { 
     214            case 1255: // Hebrew, CP1255 screws up somewhat 
     215                strcpy (buf, "ISO-8859-8"); 
     216                break; 
     217            default: 
     218                snprintf (buf, sizeof (buf), "CP%u", GetACP ()); 
     219        } 
     220    } 
    209221    return buf; 
    210222#endif