Skip to contentSkip to conversation

Windows CP1250 support

PATCH In review Petr Titera 2 participants 2 messages Nov 29, 2001 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Windows CP1250 support

Linux contains two codepages for Central European languages (CP852 and
iso8859-2) but neither one is correct for character encoding used in Central European version of Windows (which uses Microsoft's CP1250). This patch adds support for this codepage.

Patch is against kernel 2.4.14 but should apply to newer versions too as this part of code changed minimaly.

Petr Titera
[email protected]

Documentation/Configure.help +10 -0
diff -urN linux-2.4.14-v/Documentation/Configure.help linux-2.4.14-p/Documentation/Configure.help
@@ -13427,6 +13427,16 @@
   say Y here if you want to include the DOS codepage for Traditional
   Chinese(Big5).
 
+nls codepage 1250
+CONFIG_NLS_CODEPAGE_1250
+  If you want to display filenames with native language characters
+  from the Microsoft FAT file system family or from JOLIET CDROMs
+  correctly on the screen, you need to include the appropriate
+  input/output character sets. Say Y here for the Windows CP-1250
+  character set, which works for most Latin-written Slavic and Central
+  European languages: Czech, German, Hungarian, Polish, Rumanian, Croatian,
+  Slovak, Slovene.
+
 nls iso8859-1
 CONFIG_NLS_ISO8859_1
   If you want to display filenames with native language characters
fs/nls/Config.in +1 -0
diff -urN linux-2.4.14-v/fs/nls/Config.in linux-2.4.14-p/fs/nls/Config.in
@@ -43,6 +43,7 @@
   tristate 'Korean charset (CP949, EUC-KR)'        CONFIG_NLS_CODEPAGE_949
   tristate 'Thai charset (CP874, TIS-620)'         CONFIG_NLS_CODEPAGE_874
   tristate 'Hebrew charsets (ISO-8859-8, CP1255)'  CONFIG_NLS_ISO8859_8
+  tristate 'Windows CP1250 (Slavic/Central European Languages)' CONFIG_NLS_CODEPAGE_1250
   tristate 'Windows CP1251 (Bulgarian, Belarusian)' CONFIG_NLS_CODEPAGE_1251
   tristate 'NLS ISO 8859-1  (Latin 1; Western European Languages)' CONFIG_NLS_ISO8859_1
   tristate 'NLS ISO 8859-2  (Latin 2; Slavic/Central European Languages)' CONFIG_NLS_ISO8859_2
fs/nls/nls_cp1250.c +365 -0

365 lines not on this page · raw message

#1 lore raw
Quoted 6 lines · Petr Titera

Linux contains two codepages for Central European languages (CP852 and iso8859-2) but neither one is correct for character encoding used in Central European version of Windows (which uses Microsoft's CP1250). This patch adds support for this codepage.

+MODULE_LICENSE("BSD without advertising clause");

Can you please pick a valid license for new files? ("Dual GPL/BSD" is probably what you want).

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/