]> git.pld-linux.org Git - packages/kernel.git/blob - 2.6.0-t9-NLS-module-lkml.patch
- obsolete
[packages/kernel.git] / 2.6.0-t9-NLS-module-lkml.patch
1 diff -ur linux-2.6.0-test7/fs/Kconfig linux-2.6.0-test7.new/fs/Kconfig
2 --- linux-2.6.0-test7/fs/Kconfig        Thu Oct  9 22:11:31 2003
3 +++ linux-2.6.0-test7.new/fs/Kconfig    Sat Oct 25 21:24:13 2003
4 @@ -246,6 +246,7 @@
5
6  config JFS_FS
7         tristate "JFS filesystem support"
8 +       depends on NLS
9         help
10           This is a port of IBM's Journaled Filesystem .  More information is
11           available in the file Documentation/filesystems/jfs.txt.
12 @@ -464,6 +465,8 @@
13           local network, you probably do not need an automounter, and can say
14           N here.
15
16 +source "fs/nls/Kconfig"
17 +
18  menu "CD-ROM/DVD Filesystems"
19
20  config ISO9660_FS
21 @@ -484,7 +487,7 @@
22
23  config JOLIET
24         bool "Microsoft Joliet CDROM extensions"
25 -       depends on ISO9660_FS
26 +       depends on ISO9660_FS && NLS
27         help
28           Joliet is a Microsoft extension for the ISO 9660 CD-ROM file system
29           which allows for long filenames in unicode format (unicode is the
30 @@ -530,6 +533,7 @@
31
32  config FAT_FS
33         tristate "DOS FAT fs support"
34 +       depends on NLS
35         help
36           If you want to use one of the FAT-based file systems (the MS-DOS,
37           VFAT (Windows 95) and UMSDOS (used to run Linux on top of an
38 @@ -651,6 +655,7 @@
39
40  config NTFS_FS
41         tristate "NTFS file system support"
42 +       depends on NLS
43         help
44           NTFS is the file system of Microsoft Windows NT, 2000, XP and 2003.
45
46 @@ -961,7 +966,7 @@
47
48  config BEFS_FS
49         tristate "BeOS file systemv(BeFS) support (read only) (EXPERIMENTAL)"
50 -       depends on EXPERIMENTAL
51 +       depends on EXPERIMENTAL && NLS
52         help
53           The BeOS File System (BeFS) is the native file system of Be, Inc's
54           BeOS. Notable features include support for arbitrary attributes
55 @@ -1415,7 +1420,7 @@
56
57  config SMB_FS
58         tristate "SMB file system support (to mount Windows shares etc.)"
59 -       depends on INET
60 +       depends on INET && NLS
61         help
62           SMB (Server Message Block) is the protocol Windows for Workgroups
63           (WfW), Windows 95/98, Windows NT and OS/2 Lan Manager use to share
64 @@ -1470,7 +1475,7 @@
65
66  config CIFS
67         tristate "CIFS support (advanced network filesystem for Samba, Window and other CIFS compliant servers)(EXPERIMENTAL)"
68 -       depends on INET
69 +       depends on INET && NLS
70         help
71           This is the client VFS module for the Common Internet File System
72           (CIFS) protocol which is the successor to the Server Message Block
73 @@ -1585,8 +1590,6 @@
74  source "fs/partitions/Kconfig"
75
76  endmenu
77 -
78 -source "fs/nls/Kconfig"
79
80  endmenu
81
82 diff -ur linux-2.6.0-test7/fs/ncpfs/Kconfig linux-2.6.0-test7.new/fs/ncpfs/Kconfig
83 --- linux-2.6.0-test7/fs/ncpfs/Kconfig  Sat Aug  9 06:33:21 2003
84 +++ linux-2.6.0-test7.new/fs/ncpfs/Kconfig      Sat Oct 25 21:01:08 2003
85 @@ -64,7 +64,7 @@
86
87  config NCPFS_NLS
88         bool "Use Native Language Support"
89 -       depends on NCP_FS
90 +       depends on NCP_FS && NLS
91         help
92           Allows you to use codepages and I/O charsets for file name
93           translation between the server file system and input/output. This
94 diff -ur linux-2.6.0-test7/fs/nls/Kconfig linux-2.6.0-test7.new/fs/nls/Kconfig
95 --- linux-2.6.0-test7/fs/nls/Kconfig    Sat Aug  9 06:31:05 2003
96 +++ linux-2.6.0-test7.new/fs/nls/Kconfig        Sat Oct 25 21:27:58 2003
97 @@ -1,24 +1,32 @@
98  #
99  # Native language support configuration
100  #
101 -# smb wants NLS
102 -config SMB_NLS
103 -       bool
104 -       depends on SMB_FS
105 -       default y
106
107 -# msdos and Joliet want NLS
108 +menu "Native Language Support"
109 +
110  config NLS
111 -       bool
112 -       depends on JOLIET || FAT_FS || NTFS_FS || NCPFS_NLS || SMB_NLS || JFS_FS || CIFS || BEFS_FS
113 +       tristate 'Base native language support'
114         default y
115 +       ---help---
116 +         The base Native Language Support. A number of filesystems
117 +         depend on it (e.g. FAT, JOLIET, NT, BEOS filesystems), as well
118 +         as the ability of some filesystems to use native languages
119 +         (NCP, SMB).
120
121 +         If unsure, say Y.
122
123 -menu "Native Language Support"
124 -       depends on NLS
125 +         To compile this code as a module, choose M here: the module
126 +         will be called nls_base.
127 +
128 +# smb wants NLS
129 +config SMB_NLS
130 +       bool
131 +       depends on SMB_FS && NLS
132 +       default y
133
134  config NLS_DEFAULT
135         string "Default NLS Option"
136 +       depends on NLS
137         default "iso8859-1"
138         ---help---
139           The default NLS used when mounting file system. Note, that this is
140 @@ -38,6 +46,7 @@
141
142  config NLS_CODEPAGE_437
143         tristate "Codepage 437 (United States, Canada)"
144 +       depends on NLS
145         help
146           The Microsoft FAT file system family can deal with filenames in
147           native language character sets. These character sets are stored
148 @@ -50,6 +59,7 @@
149
150  config NLS_CODEPAGE_737
151         tristate "Codepage 737 (Greek)"
152 +       depends on NLS
153         help
154           The Microsoft FAT file system family can deal with filenames in
155           native language character sets. These character sets are stored
156 @@ -62,6 +72,7 @@
157
158  config NLS_CODEPAGE_775
159         tristate "Codepage 775 (Baltic Rim)"
160 +       depends on NLS
161         help
162           The Microsoft FAT file system family can deal with filenames in
163           native language character sets. These character sets are stored
164 @@ -75,6 +86,7 @@
165
166  config NLS_CODEPAGE_850
167         tristate "Codepage 850 (Europe)"
168 +       depends on NLS
169         ---help---
170           The Microsoft FAT file system family can deal with filenames in
171           native language character sets. These character sets are stored in
172 @@ -91,6 +103,7 @@
173
174  config NLS_CODEPAGE_852
175         tristate "Codepage 852 (Central/Eastern Europe)"
176 +       depends on NLS
177         ---help---
178           The Microsoft FAT file system family can deal with filenames in
179           native language character sets. These character sets are stored in
180 @@ -106,6 +119,7 @@
181
182  config NLS_CODEPAGE_855
183         tristate "Codepage 855 (Cyrillic)"
184 +       depends on NLS
185         help
186           The Microsoft FAT file system family can deal with filenames in
187           native language character sets. These character sets are stored in
188 @@ -117,6 +131,7 @@
189
190  config NLS_CODEPAGE_857
191         tristate "Codepage 857 (Turkish)"
192 +       depends on NLS
193         help
194           The Microsoft FAT file system family can deal with filenames in
195           native language character sets. These character sets are stored in
196 @@ -128,6 +143,7 @@
197
198  config NLS_CODEPAGE_860
199         tristate "Codepage 860 (Portuguese)"
200 +       depends on NLS
201         help
202           The Microsoft FAT file system family can deal with filenames in
203           native language character sets. These character sets are stored in
204 @@ -139,6 +155,7 @@
205
206  config NLS_CODEPAGE_861
207         tristate "Codepage 861 (Icelandic)"
208 +       depends on NLS
209         help
210           The Microsoft FAT file system family can deal with filenames in
211           native language character sets. These character sets are stored in
212 @@ -150,6 +167,7 @@
213
214  config NLS_CODEPAGE_862
215         tristate "Codepage 862 (Hebrew)"
216 +       depends on NLS
217         help
218           The Microsoft FAT file system family can deal with filenames in
219           native language character sets. These character sets are stored in
220 @@ -161,6 +179,7 @@
221
222  config NLS_CODEPAGE_863
223         tristate "Codepage 863 (Canadian French)"
224 +       depends on NLS
225         help
226           The Microsoft FAT file system family can deal with filenames in
227           native language character sets. These character sets are stored in
228 @@ -173,6 +192,7 @@
229
230  config NLS_CODEPAGE_864
231         tristate "Codepage 864 (Arabic)"
232 +       depends on NLS
233         help
234           The Microsoft FAT file system family can deal with filenames in
235           native language character sets. These character sets are stored in
236 @@ -184,6 +204,7 @@
237
238  config NLS_CODEPAGE_865
239         tristate "Codepage 865 (Norwegian, Danish)"
240 +       depends on NLS
241         help
242           The Microsoft FAT file system family can deal with filenames in
243           native language character sets. These character sets are stored in
244 @@ -196,6 +217,7 @@
245
246  config NLS_CODEPAGE_866
247         tristate "Codepage 866 (Cyrillic/Russian)"
248 +       depends on NLS
249         help
250           The Microsoft FAT file system family can deal with filenames in
251           native language character sets. These character sets are stored in
252 @@ -208,6 +230,7 @@
253
254  config NLS_CODEPAGE_869
255         tristate "Codepage 869 (Greek)"
256 +       depends on NLS
257         help
258           The Microsoft FAT file system family can deal with filenames in
259           native language character sets. These character sets are stored in
260 @@ -219,6 +242,7 @@
261
262  config NLS_CODEPAGE_936
263         tristate "Simplified Chinese charset (CP936, GB2312)"
264 +       depends on NLS
265         help
266           The Microsoft FAT file system family can deal with filenames in
267           native language character sets. These character sets are stored in
268 @@ -231,6 +255,7 @@
269
270  config NLS_CODEPAGE_950
271         tristate "Traditional Chinese charset (Big5)"
272 +       depends on NLS
273         help
274           The Microsoft FAT file system family can deal with filenames in
275           native language character sets. These character sets are stored in
276 @@ -243,6 +268,7 @@
277
278  config NLS_CODEPAGE_932
279         tristate "Japanese charsets (Shift-JIS, EUC-JP)"
280 +       depends on NLS
281         help
282           The Microsoft FAT file system family can deal with filenames in
283           native language character sets. These character sets are stored in
284 @@ -256,6 +282,7 @@
285
286  config NLS_CODEPAGE_949
287         tristate "Korean charset (CP949, EUC-KR)"
288 +       depends on NLS
289         help
290           The Microsoft FAT file system family can deal with filenames in
291           native language character sets. These character sets are stored in
292 @@ -267,6 +294,7 @@
293
294  config NLS_CODEPAGE_874
295         tristate "Thai charset (CP874, TIS-620)"
296 +       depends on NLS
297         help
298           The Microsoft FAT file system family can deal with filenames in
299           native language character sets. These character sets are stored in
300 @@ -278,6 +306,7 @@
301
302  config NLS_ISO8859_8
303         tristate "Hebrew charsets (ISO-8859-8, CP1255)"
304 +       depends on NLS
305         help
306           If you want to display filenames with native language characters
307           from the Microsoft FAT file system family or from JOLIET CD-ROMs
308 @@ -287,6 +316,7 @@
309
310  config NLS_CODEPAGE_1250
311         tristate "Windows CP1250 (Slavic/Central European Languages)"
312 +       depends on NLS
313         help
314           If you want to display filenames with native language characters
315           from the Microsoft FAT file system family or from JOLIET CDROMs
316 @@ -298,6 +328,7 @@
317
318  config NLS_CODEPAGE_1251
319         tristate "Windows CP1251 (Bulgarian, Belarusian)"
320 +       depends on NLS
321         help
322           The Microsoft FAT file system family can deal with filenames in
323           native language character sets. These character sets are stored in
324 @@ -310,6 +341,7 @@
325
326  config NLS_ISO8859_1
327         tristate "NLS ISO 8859-1  (Latin 1; Western European Languages)"
328 +       depends on NLS
329         help
330           If you want to display filenames with native language characters
331           from the Microsoft FAT file system family or from JOLIET CD-ROMs
332 @@ -322,6 +354,7 @@
333
334  config NLS_ISO8859_2
335         tristate "NLS ISO 8859-2  (Latin 2; Slavic/Central European Languages)"
336 +       depends on NLS
337         help
338           If you want to display filenames with native language characters
339           from the Microsoft FAT file system family or from JOLIET CD-ROMs
340 @@ -333,6 +366,7 @@
341
342  config NLS_ISO8859_3
343         tristate "NLS ISO 8859-3  (Latin 3; Esperanto, Galician, Maltese, Turkish)"
344 +       depends on NLS
345         help
346           If you want to display filenames with native language characters
347           from the Microsoft FAT file system family or from JOLIET CD-ROMs
348 @@ -343,6 +377,7 @@
349
350  config NLS_ISO8859_4
351         tristate "NLS ISO 8859-4  (Latin 4; old Baltic charset)"
352 +       depends on NLS
353         help
354           If you want to display filenames with native language characters
355           from the Microsoft FAT file system family or from JOLIET CD-ROMs
356 @@ -353,6 +388,7 @@
357
358  config NLS_ISO8859_5
359         tristate "NLS ISO 8859-5  (Cyrillic)"
360 +       depends on NLS
361         help
362           If you want to display filenames with native language characters
363           from the Microsoft FAT file system family or from JOLIET CD-ROMs
364 @@ -364,6 +400,7 @@
365
366  config NLS_ISO8859_6
367         tristate "NLS ISO 8859-6  (Arabic)"
368 +       depends on NLS
369         help
370           If you want to display filenames with native language characters
371           from the Microsoft FAT file system family or from JOLIET CD-ROMs
372 @@ -373,6 +410,7 @@
373
374  config NLS_ISO8859_7
375         tristate "NLS ISO 8859-7  (Modern Greek)"
376 +       depends on NLS
377         help
378           If you want to display filenames with native language characters
379           from the Microsoft FAT file system family or from JOLIET CD-ROMs
380 @@ -382,6 +420,7 @@
381
382  config NLS_ISO8859_9
383         tristate "NLS ISO 8859-9  (Latin 5; Turkish)"
384 +       depends on NLS
385         help
386           If you want to display filenames with native language characters
387           from the Microsoft FAT file system family or from JOLIET CD-ROMs
388 @@ -392,6 +431,7 @@
389
390  config NLS_ISO8859_13
391         tristate "NLS ISO 8859-13 (Latin 7; Baltic)"
392 +       depends on NLS
393         help
394           If you want to display filenames with native language characters
395           from the Microsoft FAT file system family or from JOLIET CD-ROMs
396 @@ -402,6 +442,7 @@
397
398  config NLS_ISO8859_14
399         tristate "NLS ISO 8859-14 (Latin 8; Celtic)"
400 +       depends on NLS
401         help
402           If you want to display filenames with native language characters
403           from the Microsoft FAT file system family or from JOLIET CD-ROMs
404 @@ -413,6 +454,7 @@
405
406  config NLS_ISO8859_15
407         tristate "NLS ISO 8859-15 (Latin 9; Western European Languages with Euro)"
408 +       depends on NLS
409         ---help---
410           If you want to display filenames with native language characters
411           from the Microsoft FAT file system family or from JOLIET CD-ROMs
412 @@ -429,6 +471,7 @@
413
414  config NLS_KOI8_R
415         tristate "NLS KOI8-R (Russian)"
416 +       depends on NLS
417         help
418           If you want to display filenames with native language characters
419           from the Microsoft FAT file system family or from JOLIET CD-ROMs
420 @@ -438,6 +481,7 @@
421
422  config NLS_KOI8_U
423         tristate "NLS KOI8-U/RU (Ukrainian, Belarusian)"
424 +       depends on NLS
425         help
426           If you want to display filenames with native language characters
427           from the Microsoft FAT file system family or from JOLIET CD-ROMs
428 @@ -447,6 +491,7 @@
429
430  config NLS_UTF8
431         tristate "NLS UTF8"
432 +       depends on NLS
433         help
434           If you want to display filenames with native language characters
435           from the Microsoft FAT file system family or from JOLIET CD-ROMs
436 diff -ur linux-2.6.0-test7/fs/nls/nls_base.c linux-2.6.0-test7.new/fs/nls/nls_base.c
437 --- linux-2.6.0-test7/fs/nls/nls_base.c Wed Oct  8 23:28:18 2003
438 +++ linux-2.6.0-test7.new/fs/nls/nls_base.c     Sat Oct 25 21:18:54 2003
439 @@ -480,7 +480,7 @@
440         if (default_nls != NULL)
441                 return default_nls;
442         else
443 -               return &default_table;
444 +               return &default_table;
445  }
446
447  EXPORT_SYMBOL(register_nls);
448 @@ -492,3 +492,5 @@
449  EXPORT_SYMBOL(utf8_mbstowcs);
450  EXPORT_SYMBOL(utf8_wctomb);
451  EXPORT_SYMBOL(utf8_wcstombs);
452 +
453 +MODULE_LICENSE("Dual BSD/GPL");
This page took 0.079076 seconds and 3 git commands to generate.