Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / libunls / nls_config.c
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
4  * The behaviour and appearence of the program code below can differ to a major
5  * extent from the version distributed by the original author(s).
6  *
7  * For details, see Changelog file distributed with the cdrkit package. If you
8  * received this file from another source then ask the distributing person for
9  * a log of modifications.
10  *
11  */
12
13 /* @(#)nls_config.c     1.5 05/05/01 2000,2001 J. Schilling */
14 /*
15  *      Modifications to make the code portable Copyright (c) 2000 J. Schilling
16  *      This file contains code taken from nls_base.c to avoid loops
17  *      in dependency reported by tsort.
18  *
19  *      Thanks to Georgy Salnikov <sge@nmr.nioch.nsc.ru>
20  *
21  *      Code taken from the Linux kernel.
22  */
23 /*
24  * This program is free software; you can redistribute it and/or modify
25  * it under the terms of the GNU General Public License version 2
26  * as published by the Free Software Foundation.
27  *
28  * This program is distributed in the hope that it will be useful,
29  * but WITHOUT ANY WARRANTY; without even the implied warranty of
30  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31  * GNU General Public License for more details.
32  *
33  * You should have received a copy of the GNU General Public License along with
34  * this program; see the file COPYING.  If not, write to the Free Software
35  * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36  */
37
38 #include <mconfig.h>
39 #include "nls.h"
40
41 int
42 init_unls()
43 {
44 #ifdef CONFIG_NLS_ISO8859_1
45         init_unls_iso8859_1();
46 #endif
47 #ifdef CONFIG_NLS_ISO8859_2
48         init_unls_iso8859_2();
49 #endif
50 #ifdef CONFIG_NLS_ISO8859_3
51         init_unls_iso8859_3();
52 #endif
53 #ifdef CONFIG_NLS_ISO8859_4
54         init_unls_iso8859_4();
55 #endif
56 #ifdef CONFIG_NLS_ISO8859_5
57         init_unls_iso8859_5();
58 #endif
59 #ifdef CONFIG_NLS_ISO8859_6
60         init_unls_iso8859_6();
61 #endif
62 #ifdef CONFIG_NLS_ISO8859_7
63         init_unls_iso8859_7();
64 #endif
65 #ifdef CONFIG_NLS_ISO8859_8
66         init_unls_iso8859_8();
67 #endif
68 #ifdef CONFIG_NLS_ISO8859_9
69         init_unls_iso8859_9();
70 #endif
71 #ifdef CONFIG_NLS_ISO8859_14
72         init_unls_iso8859_14();
73 #endif
74 #ifdef CONFIG_NLS_ISO8859_15
75         init_unls_iso8859_15();
76 #endif
77 #ifdef CONFIG_NLS_CODEPAGE_437
78         init_unls_cp437();
79 #endif
80 #ifdef CONFIG_NLS_CODEPAGE_737
81         init_unls_cp737();
82 #endif
83 #ifdef CONFIG_NLS_CODEPAGE_775
84         init_unls_cp775();
85 #endif
86 #ifdef CONFIG_NLS_CODEPAGE_850
87         init_unls_cp850();
88 #endif
89 #ifdef CONFIG_NLS_CODEPAGE_852
90         init_unls_cp852();
91 #endif
92 #ifdef CONFIG_NLS_CODEPAGE_855
93         init_unls_cp855();
94 #endif
95 #ifdef CONFIG_NLS_CODEPAGE_857
96         init_unls_cp857();
97 #endif
98 #ifdef CONFIG_NLS_CODEPAGE_860
99         init_unls_cp860();
100 #endif
101 #ifdef CONFIG_NLS_CODEPAGE_861
102         init_unls_cp861();
103 #endif
104 #ifdef CONFIG_NLS_CODEPAGE_862
105         init_unls_cp862();
106 #endif
107 #ifdef CONFIG_NLS_CODEPAGE_863
108         init_unls_cp863();
109 #endif
110 #ifdef CONFIG_NLS_CODEPAGE_864
111         init_unls_cp864();
112 #endif
113 #ifdef CONFIG_NLS_CODEPAGE_865
114         init_unls_cp865();
115 #endif
116 #ifdef CONFIG_NLS_CODEPAGE_866
117         init_unls_cp866();
118 #endif
119 #ifdef CONFIG_NLS_CODEPAGE_869
120         init_unls_cp869();
121 #endif
122 #ifdef CONFIG_NLS_CODEPAGE_874
123         init_unls_cp874();
124 #endif
125 #ifdef CONFIG_NLS_CODEPAGE_1250
126         init_unls_cp1250();
127 #endif
128 #ifdef CONFIG_NLS_CODEPAGE_1251
129         init_unls_cp1251();
130 #endif
131 #ifdef CONFIG_NLS_KOI8_R
132         init_unls_koi8_r();
133 #endif
134 #ifdef CONFIG_NLS_KOI8_U
135         init_unls_koi8_u();
136 #endif
137 #ifdef CONFIG_NLS_CODEPAGE_10000
138         init_unls_cp10000();
139 #endif
140 #ifdef CONFIG_NLS_CODEPAGE_10006
141         init_unls_cp10006();
142 #endif
143 #ifdef CONFIG_NLS_CODEPAGE_10007
144         init_unls_cp10007();
145 #endif
146 #ifdef CONFIG_NLS_CODEPAGE_10029
147         init_unls_cp10029();
148 #endif
149 #ifdef CONFIG_NLS_CODEPAGE_10079
150         init_unls_cp10079();
151 #endif
152 #ifdef CONFIG_NLS_CODEPAGE_10081
153         init_unls_cp10081();
154 #endif
155         return (0);
156 }