Changeset d549f3be26b7e0177a125fb360fb1f7fb2609705
- 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
| r4f32396 |
rd549f3b |
|
| 98 | 98 | /* Hebrew (ISO-8859-8) */ |
|---|
| 99 | 99 | if (!locale_match ("he" "iw" "yi", locale)) |
|---|
| 100 | | return "CP1255"; // Compatible Microsoft superset |
|---|
| | 100 | return "ISO-8859-8"; // CP1255 is reportedly screwed up |
|---|
| 101 | 101 | |
|---|
| 102 | 102 | /* Latin-5 Turkish (ISO-8859-9) */ |
|---|
| … | … | |
| 205 | 205 | #else |
|---|
| 206 | 206 | static char buf[16] = ""; |
|---|
| | 207 | |
|---|
| 207 | 208 | 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 | } |
|---|
| 209 | 221 | return buf; |
|---|
| 210 | 222 | #endif |
|---|