This file is indexed.

/usr/share/doc/HOWTO/ja-html/Unicode-HOWTO-4.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>The Unicode HOWTO: ¥í¥±¡¼¥ëÀßÄê</TITLE>
 <LINK HREF="Unicode-HOWTO-5.html" REL=next>
 <LINK HREF="Unicode-HOWTO-3.html" REL=previous>
 <LINK HREF="Unicode-HOWTO.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="Unicode-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Unicode-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Unicode-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s4">4. ¥í¥±¡¼¥ëÀßÄê</A></H2>

<P>
<P>
<H2><A NAME="ss4.1">4.1 ¥Õ¥¡¥¤¥ë¤È¥«¡¼¥Í¥ë</A>
</H2>

<P>
<P>¤¹¤Ç¤Ë¡¢¤É¤Î¤è¤¦¤Ê Unicode ʸ»ú¤Ç¤â¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤
¤Þ¤¹¡£¥«¡¼¥Í¥ë¤ä¥Õ¥¡¥¤¥ë¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î½¤Àµ¤ÏɬÍפ¢¤ê¤Þ¤»¤ó¡£¥«¡¼¥Í¥ëÆâ
¤Ç¤Î¥Õ¥¡¥¤¥ë̾¤Ï¥Ì¥ëʸ»ú¤ä / ¤ò´Þ¤Þ¤Ê¤¤¸Â¤ê²¿¤Ç¤â¤«¤Þ¤¤¤Þ¤»¤ó(/ ¤Ï¥µ¥Ö¥Ç¥£
¥ì¥¯¥È¥ê¤Î¶èÀÚ¤ê¤Ë»È¤ï¤ì¤Æ¤¤¤ë¤«¤é¤Ç¤¹)¡£UTF-8 ¤ò»ÈÍѤ·¤Æ¥¨¥ó¥³¡¼¥É¤µ¤ì
¤ë»þ¤Ë¡¢Èó ASCII ʸ»ú¤¬¥Ì¥ëʸ»ú¤ä / ¤Ë¥¨¥ó¥³¡¼¥É¤µ¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¥Õ¥¡¥¤¥ë¤ä¥Ç¥£¥ì¥¯¥È¥ê¤Î̾Á°¤¬Ê¸»ú¿ô¤è¤ê¤â¿¤¯¤Î¥Ð¥¤¥È¿ô¤òÀê¤á¤ë¤À¤±¤Ç¤¹¡£
Î㤨¤Ð 5 ¤Ä¤Î¥®¥ê¥·¥ãʸ»ú¤«¤é¤Ê¤ë¥Õ¥¡¥¤¥ë̾¤Ï¥«¡¼¥Í¥ë¤«¤é¤Ï 10 ¥Ð¥¤¥È¤Î
¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¸«¤¨¤Þ¤¹¡£¥«¡¼¥Í¥ë¤Ï¤³¤ì¤é¤¬¥®¥ê¥·¥ãʸ»ú¤Çɽ¼¨¤µ¤ì¤ë¤È¤¤
¤¦¤³¤È¤òÃΤê¤Þ¤»¤ó¤·¡¢ÃΤëɬÍפ⤢¤ê¤Þ¤»¤ó¡£
<P>¤³¤ì¤¬´ðËܸ¶Íý¤Ç¤¹¡£¥Õ¥¡¥¤¥ë¤¬ Linux ¤À¤±¤Ç»È¤ï¤ì¤ë¤Î¤Ç¤¢¤ì¤Ð¡£Â¾¤Î OS 
¤«¤é»ÈÍѤµ¤ì¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¤¿¤á¤Ë¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤ò UTF-8 ¤ÈÁê¸ß¤Ë¥³
¥ó¥Ð¡¼¥È¤¹¤ë¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£
<P>
<UL>
<LI>"vfat" ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ï¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó "utf8" ¤¬¤¢¤ê¤Þ¤¹¡£
<A HREF="file:/usr/src/linux/Documentation/filesystems/vfat.txt">file:/usr/src/linux/Documentation/filesystems/vfat.txt</A> ¤ò¸«¤Æ¤¯
¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È("iso8859-1" ¤Ç¤¹)¤Ç¤Ï¤Ê¤¯ "iocharset" ¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç
¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¤Ë¤Ï "utf8"¤ò»ÈÍѤ¹¤ë¤É¤¦¤«¤Ë´Ø¤ï¤é¤º¡¢·ë²Ì¤Ë¤Ï°ì´ÓÀ­¤¬
¤¢¤ê¤Þ¤»¤ó¡£¤Ç¤¹¤«¤é "iocharset" ¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¤Ï¤ª´«¤á¤·¤Þ¤»¤ó¡£
</LI>
<LI>"msdos"¡¢"umsdos" ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤âƱ¤¸¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹
¤¬¡¢²¿¤âµ¯¤³¤é¤Ê¤¤¤è¤¦¤Ç¤¹¡£
</LI>
<LI>"iso9660" ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ï¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó "utf8" ¤¬¤¢¤ê¤Þ¤¹¡£
<A HREF="file:/usr/src/linux/Documentation/filesystems/isofs.txt">file:/usr/src/linux/Documentation/filesystems/isofs.txt</A> ¤ò¸«¤Æ¤¯
¤À¤µ¤¤¡£
</LI>
<LI>Linux 2.2.x ¥«¡¼¥Í¥ë°Ê¹ß¤Ï¡¢"ntfs" ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó 
"utf8" ¤¬¤¢¤ê¤Þ¤¹¡£
<A HREF="file:/usr/src/linux/Documentation/filesystems/ntfs.txt">file:/usr/src/linux/Documentation/filesystems/ntfs.txt</A> 
¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
</LI>
</UL>

¾¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à(nfs, smbfs, ncpfs, hpfs ¤Ê¤É)¤Ç¤Ï¥Õ¥¡¥¤¥ë̾¤ò¥³¥ó¥Ð¡¼
¥È¤·¤Þ¤»¤ó¡£¤Ä¤Þ¤ê¤½¤ì¤é¤Î OS ¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë»þ¤Ë¸Â¤ê¡¢UTF-8 ¤Ç¥¨¥ó¥³¡¼
¥Ç¥£¥ó¥°¤µ¤ì¤¿ Unicode ¤Î¥Õ¥¡¥¤¥ë̾¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£¤¢¤È¤ÇºÆ¥Þ¥¦¥ó¥È¤¹
¤ë»þ¤Ë¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¤òÍ­¸ú¤Ë¤¹¤ë¤¿¤á¤Ë /etc/fstab ¤Î´Ø·¸¤¹¤ë¹Ô¤Î 4 
ÈÖÌܤΥ«¥é¥à¤Ë¥ª¥×¥·¥ç¥ó¤òÄɲ乤ë¤È¤è¤¤¤Ç¤·¤ç¤¦¡£
<P>
<P>
<H2><A NAME="ss4.2">4.2 tty ¤È¥«¡¼¥Í¥ë</A>
</H2>

<P>
<P>tty ¤Ï 2 ¤Ä¤Î¥×¥í¥°¥é¥à´Ö¤Ë¤¢¤ë¤¤¤ï¤æ¤ëÁÐÊý¸þ¥Ñ¥¤¥×¤Î¤è¤¦¤Êʪ¤Ç¡¢Ê¸»ú¤Î
¥¨¥³¡¼¤ä¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤ÎÊÔ½¸¤È¤¤¤Ã¤¿ÁÇŨ¤Êµ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£xterm ¤Ç
°ú¿ô¤Ê¤·¤Î "cat" ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È²¿¹Ô¤Ç¤âÆþÎϤäÊÔ½¸¤¬¤Ç¤­¡¢¤Þ¤¿³Æ¹Ô
¤Ï¥¨¥³¡¼¥Ð¥Ã¥¯(ÌõÃí¡§ÆþÎϤ·¤¿Ê¸»ú¤Î¥¨¥³¡¼É½¼¨)¤µ¤ì¤Þ¤¹¡£¥«¡¼¥Í¥ë¤ÎÊÔ½¸µ¡
ǽ¤ÏÀµ¾ï¤ËÆ°ºî¤·¤Þ¤»¤ó¡£Æäˡ¢¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¥­¡¼¤È¥¿¥Ö¥­¡¼¤ÏÀµ¤·¤¯°·¤ï¤ì
¤Þ¤»¤ó¡£
<P>¤³¤ÎÌäÂê¤ò½¤Àµ¤¹¤ë¤Ë¤Ï¡¢¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£
<P>
<UL>
<LI>¼¡¤Î¤¦¤ÁÂбþ¤¹¤ë¥«¡¼¥Í¥ë¥Ñ¥Ã¥Á¤ò¤¢¤Æ¡¢¥«¡¼¥Í¥ë¤ÎºÆ¥³¥ó¥Ñ¥¤¥ë¤ò¤·¤Þ¤¹¡£<BR>
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/linux-2.0.35-tty.diff">linux-2.0.35-tty.diff</A>,  
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/linux-2.2.9-tty.diff">linux-2.2.9-tty.diff</A>, 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/linux-2.3.12-tty.diff">linux-2.3.12-tty.diff</A>
</LI>
<LI>glibc2 ¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢¥Ñ¥Ã¥Á 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/glibc211-tty.diff">glibc211-tty.diff</A> ¤ò¤¢¤Æ¤Æ libc ¤ÎºÆ¥³¥ó¥Ñ¥¤¥ë¤ò¹Ô¤¤¤Þ¤¹¡£ËÁ¸±¤¬¹¥¤­
¤Ç¤Ê¤±¤ì¤Ð¡¢´û¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤Ë¥Ñ¥Ã¥Á 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/glibc-tty.diff">glibc-tty.diff</A> ¤ò¤¢¤Æ¤ë¤À¤±¤Ç½¼Ê¬¤Ç¤¹¡£
</LI>
<LI>¥Ñ¥Ã¥Á 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/stty.diff">stty.diff</A>¤ò GNU sh-utils-1.16b ¤Ë¤¢¤Æ¤Æ "stty" ¥×¥í¥°¥é¥à¤Î
¥ê¥Ó¥ë¥É¤ò¹Ô¤Ê¤¤¡¢"stty -a" ¤È "stty iutf8" ¤ò»È¤Ã¤Æ¥Æ¥¹¥È¤ò¤·¤Þ¤¹¡£
</LI>
<LI>"stty iutf8" ¥³¥Þ¥ó¥É¤ò "unicode_start" ¥¹¥¯¥ê¥×¥È¤Ë¡¢
"stty -iutf8" ¥³¥Þ¥ó¥É¤ò "unicode_stop" ¥¹¥¯¥ê¥×¥È¤ËÄɲä·¤Þ¤¹¡£
</LI>
<LI>¥Ñ¥Ã¥Á 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/xterm.diff">xterm.diff</A> ¤ò xterm-109 ¤Ë¤¢¤Æ¤Æ "xterm" ¤Î¥ê¥Ó¥ë¥É¤ò¹Ô¤¤¡¢
"xterm - u8" ¤ä "xterm +u8" ¤ò¼Â¹Ô¤·¤Æ¡¢¤½¤³¤Ç "stty -a" ¤ä "cat" ¤òÆ°¤«
¤·¤Æ¥Æ¥¹¥È¤·¤Þ¤¹¡£
</LI>
</UL>
<P>rlogin ¤ä telnet ¤ò¤·¤Æ¤â¤³¤Î½¤Àµ¤òÍ­¸ú¤Ë¤·Â³¤±¤ë¤Ë¤Ï¼¡¤Î¤³¤È¤ò
¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡§
<P>
<UL>
<LI>´Ä¶­ÊÑ¿ô TERM ¤Ë¿·¤·¤¤ÃÍ("linux" ¤Ø¤Î¥¨¥¤¥ê¥¢¥¹¤È¤·¤Æ "linux-utf8" ¤ò¡¢
"xterm" ¤Ø¤Î¥¨¥¤¥ê¥¢¥¹¤È¤·¤Æ "xterm-utf8")¤òÄêµÁ¤·¤Þ¤¹¡£¥·¥¹¥Æ¥à¤Ë 
ncurses ¥é¥¤¥Ö¥é¥ê¤È /usr/lib/terminfo(¤Þ¤¿¤Ï /usr/share/terminfo) ¤¬¤¢
¤ë¾ì¹ç¤Ë¤Ï¡¢

<BLOCKQUOTE><CODE>
<PRE>
$ tic linux-utf8.terminfo
$ tic xterm-utf8.terminfo
</PRE>
</CODE></BLOCKQUOTE>

¤ò root °Ê³°¤Ç¼Â¹Ô¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¤¤Þ¤¹¡£¤³¤ì¤Ï terminfo ¥¨¥ó¥È¥ê¤ò 
$HOME/.terminfo ¥Ç¥£¥ì¥¯¥È¥ê¤Ëºî¤ê¤Þ¤¹¡£¤³¤³¤Ë 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/linux-utf8.terminfo">linux-utf8.terminfo</A> ¤È 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/xterm-utf8.terminfo">xterm-utf8.terminfo</A> ¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Îºî¶È¤ò root ¤Ç¹Ô¤¦¤³¤È
¤Ï¤ª´«¤á¤·¤Þ¤»¤ó¡£¼Â¹Ô¤¹¤ë¤È /usr/lib/terminfo ¤Ë terminfo ¥¨¥ó¥È¥ê¤òºî
À®¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥·¥¹¥Æ¥à¤ò¥¢¥Ã¥×¥°¥ì¡¼¥É¤·¤¿»þ¤Ë¾Ã¤µ¤ì¤Æ¤·¤Þ¤¦
¤«¤â¤·¤ì¤Þ¤»¤ó¡£¥·¥¹¥Æ¥à¤Ë /etc/termcap ¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Õ¥¡
¥¤¥ë¤âÊÔ½¸¤·¤¿Êý¤¬¤è¤¤¤Ç¤·¤ç¤¦¡£linux ¤È xterm ¥¨¥ó¥È¥ê¤ò¥³¥Ô¡¼¤·¡¢¤½¤ì
¤¾¤ì¤Ë¿·¤·¤¤Ì¾Á° "linux-utf8" ¤È "xterm-utf8" ¤òÉÕ¤±¤Þ¤¹¡£Îã¤Ï¤³¤Î 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/termcap.diff">termcap.diff</A> ¤Ç¤¹¡£
</LI>
<LI>¥³¥ó¥½¡¼¥ë¤«¤é "unicode_start" ¤ä "unicode_stop" ¤ò¸Æ¤Ó¤À¤¹Å٤ˡ¢¤½¤ì
¤¾¤ì "export TERM=linux-utf8" ¤ä "export TERM=linux" ¤â¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£
</LI>
<LI>¥Ñ¥Ã¥Á 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/xterm2.diff">xterm2.diff</A>¤ò xterm-109 ¤Ë¤¢¤Æ¤Æ "xterm" ¤ò¥ê¥Ó¥ë¥É¤·¡¢
/usr/X11R6/lib/X11/app-defaults/XTerm ¤È $HOME/.Xdefaults ¤«¤éÁ´¤Æ¤Î 
"XTerm*termName" ¹Ô¤ò¼è¤ê½ü¤­¤Þ¤¹¡£¤³¤ì¤Ç xterm ¤¬ UTF-8 ¥â¡¼¥É¤Ç¼Â¹Ô¤µ
¤ì¤Æ¤¤¤ë»þ¤Î TERM ÊÑ¿ô¤Ï "xterm" ¤ÎÂå¤ï¤ê¤Ë "xterm-utf8" ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
</LI>
<LI>¥Ñ¥Ã¥Á 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/netkit.diff">netkit.diff</A>, 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/netkitb.diff">netkitb.diff</A>, 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/telnet.diff">telnet.diff</A> ¤ò¤¢¤Æ¤Æ "rlogind" ¤È "telnetd" ¤ò¥ê¥Ó¥ë¥É¤·¤Þ¤¹¡£¤³
¤ì¤Ç rlogin ¤È telnet ¤Ï TERM ÊÑ¿ô¤¬ "linux-utf8" ¤ä "xterm-utf8" ¤Ç¤¢¤ë
»þ¤Ë¤Ï¡¢¤¤¤Ä¤Ç¤â tty ¤ò UTF-8 ÊÔ½¸¥â¡¼¥É¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
</LI>
</UL>
<P>
<H2><A NAME="ss4.3">4.3 °ìÈÌŪ¤Ê¥Ç¡¼¥¿ÊÑ´¹</A>
</H2>

<P>
<P>¥í¡¼¥«¥ë¤Ç¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°(¤ª¤½¤é¤¯ ISO-88591 ¤ä EUC)¤¬¤µ¤ì¤Æ¤¤¤ë¥Æ¥­
¥¹¥È¤ò UTF-8 ¤Ë¥³¥ó¥Ð¡¼¥È¤¹¤ë¥×¥í¥°¥é¥à¤¬É¬Íפˤʤë¤Ï¤º¤Ç¤¹¡£(ÂåÂؤȤ·¤Æ¤Ï
Ʊ¤¸¥Þ¥·¥ó¾å¤Ç¡¢¤½¤ì¤¾¤ì°Û¤Ê¤Ã¤¿¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Î¥Æ¥­¥¹¥È¤ò»È¤¤Â³¤±¤ë¤³
¤È¤Ç¤¹¤¬¡¢¤³¤ì¤ÏĹ´üŪ¤Ë¸«¤ë¤È¤¢¤Þ¤ê³Ú¤·¤¤¤³¤È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó) ¤½¤Î¤è
¤¦¤Ê¥×¥í¥°¥é¥à¤Î 1 ¤Ä¤Ë `iconv' ¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï glibc-2.1 ¤ËƱº­¤µ¤ì
¤Æ¤ª¤ê¡¢¼¡¤Î¤è¤¦¤Ë¤·¤Æ´Êñ¤Ë»È¤¨¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ iconv --from-code=ISO-8859-1 --to-code=UTF-8 &lt; old_file &gt; new_file
</PRE>
</CODE></BLOCKQUOTE>
<P>¤³¤Î 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/i2u.sh">i2u.sh</A> (ISO ¤ò UTF ¤Ë¥³¥ó¥Ð¡¼¥È) ¤È 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/u2i.sh">u2i.sh</A> (UTF 
¤ò ISO ¤Ë¥³¥ó¥Ð¡¼¥È)¤Ï¡¢ÊØÍø¤Ê¥¹¥¯¥ê¥×¥È¤Ç¤¹¡£¤¤¤ÞÍøÍѤ·¤Æ¤¤¤ë 8 ¥Ó¥Ã¥È
ʸ»ú¥»¥Ã¥È¤Ë¹ç¤¦¤è¤¦¤Ë½¤Àµ¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>glibc-2.1 ¤ä iconv ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢GNU recode 3.5 ¤òÂå¤ï
¤ê¤Ë»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£"i2u" 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/i2u_recode.sh">i2u_recode.sh</A> ¤Ï"recode ISO-8859-1..UTF-8" ¤È¡¢"u2i" 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/u2i_recode.sh">u2i_recode.sh</A> ¤Ï "recode UTF-8..ISO-8859-1" ¤È¤·¤Æ¹Ô¤¤¤Þ¤¹¡£
<A HREF="ftp://ftp.iro.umontreal.ca/pub/recode/recode-3.5.tar.gz">ftp://ftp.iro.umontreal.ca/pub/recode/recode-3.5.tar.gz</A> 
<A HREF="ftp://ftp.gnu.org/pub/gnu/recode/recode-3.5.tar.gz">ftp://ftp.gnu.org/pub/gnu/recode/recode-3.5.tar.gz</A>Ãí°Õ¡§ GNU
recode 3.5 °Ê¾å¤¬É¬ÍפȤʤê¤Þ¤¹¡£GNU recode 3.5 ¤Î¥³¥ó¥Ñ¥¤¥ë¤ò glibc2 ¤¬
¸ºß¤·¤Ê¤¤¥×¥é¥Ã¥È¥Õ¥©¡¼¥à(¤Ä¤Þ¤ê¸Å¤¤ Linux ¥·¥¹¥Æ¥à)¤Ç¹Ô¤Ê¤¦¤Ë¤Ï¡¢--
disable-nls ¤ò»ØÄꤷ¤Æ configure ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ë¤Ï
¥ê¥ó¥¯¤Ë¼ºÇÔ¤·¤Þ¤¹¡£
CJK ¤ò¥µ¥Ý¡¼¥È¤¹¤ë³«È¯ÈǤο·¤·¤¤ GNU recode ¤Ï¤³¤³¤«¤éÆþ¼ê¤Ç¤­¤Þ¤¹¡£ 
<A HREF="http://www.iro.umontreal.ca/contrib/recode/">http://www.iro.umontreal.ca/contrib/recode/</A><P>CLISP ¤òÂå¤ï¤ê¤Ë»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤³¤Î "i2u" 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/i2u.lsp">i2u.lsp</A> ¤È 
"u2i" 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/u2i.lsp">u2i.lsp</A> ¤Ï Lisp ¤Ç½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£Ãí°Õ¡§ CLISP ¤Î 1999 ǯ 7 ·î°Ê
¹ß¤Î¥Ð¡¼¥¸¥ç¥ó¤¬É¬ÍפǤ¹¡£
<A HREF="ftp://clisp.cons.org/pub/lisp/clisp/source/clispsrc.tar.gz">ftp://clisp.cons.org/pub/lisp/clisp/source/clispsrc.tar.gz</A><P>GNU record ¤è¤ê¤âµ¡Ç½¤¬Îô¤ê¤Þ¤¹¤¬¡¢¤½¤Î¾¤Î¥Ç¡¼¥¿¥³¥ó¥Ð¡¼¥È¥×¥í¥°¥é¥à¤Ë¤Ï
`trans' 
<A HREF="ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/charsets/trans113.tar.gz">ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/charsets/trans113.tar.gz</A>¡¢
Plan9 operating system ¤Î `tcs' 
<A HREF="ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/charsets/tcs.tar.gz">ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/charsets/tcs.tar.gz</A>¡¢
G. Adam Stanislav ¤ÎºîÀ®¤·¤¿ `utrans'/`uhtrans'/`hutrans' 
<A HREF="ftp://ftp.cdrom.com/pub/FreeBSD/distfiles/i18ntools-1.0.tar.gz">ftp://ftp.cdrom.com/pub/FreeBSD/distfiles/i18ntools-1.0.tar.gz</A>
<A HREF="mailto:adam@whizkidtech.net">&lt;adam@whizkidtech.net&gt;</A> ¤¬¤¢¤ê¤Þ¤¹¡£
<P>¾¤Îʸ»ú¥»¥Ã¥È¤«¤é UTF-8 ¤Ø¤Î¥Õ¥¡¥¤¥ë¤Î¥³¥ó¥Ð¡¼¥È¤ò¤¿¤Ó¤¿¤Ó¹Ô¤Ê¤¦»þ¤Ë¤Ï
Ⱦ¼«Æ°¤Î¥Ä¡¼¥ë 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/to-utf8">to-utf8</A> ¤ò
»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¥Õ¥¡¥¤¥ë¤ÎÈó ASCII ʸ»ú¤ò¥æ¡¼¥¶¡¼¤Ëɽ¼¨¤·¡¢¥Õ¥¡
¥¤¥ë¤Î¸µ¤Îʸ»ú¥»¥Ã¥È¤ò¥æ¡¼¥¶¡¼¤ËÁªÂò¤µ¤»¤ë¤³¤È¤Ë¤è¤ê¥Õ¥¡¥¤¥ë¤ò UTF-8 ¤Ë¥³¥ó¥Ð¡¼
¥È¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
<P>
<H2><A NAME="ss4.4">4.4 ¥í¥±¡¼¥ë¤Î´Ä¶­ÊÑ¿ô</A>
</H2>

<P>¼¡¤Î´Ä¶­ÊÑ¿ô¤Ë¥í¥±¡¼¥ë̾¤Ê¤É¤ò¥»¥Ã¥È¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
<P>
<DL>
<DT><B>LANGUAGE</B><DD><P>LC_MESSAGES (¤ÎÀßÄê)¤ò¾å½ñ¤­¤·¤Þ¤¹¡£GNU gettext ¤À¤±¤¬»ÈÍѤ·¤Þ¤¹¡£
<P>
<DT><B>LC_ALL</B><DD><P>¾¤Î LC_* ÊÑ¿ô¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ëÁ´¤Æ¤ÎÀßÄê¤ò¾å½ñ¤­(¾¤ÎÀßÄê¤è¤ê
¤³¤Î»ØÄ꤬ͥÀè)¤·¤Þ¤¹¡£
<P>
<DT><B>LC_CTYPE, LC_MESSAGES, LC_COLLATE, LC_NUMERIC, LC_MONETARY, LC_TIME</B><DD><P>¤½¤ì¤¾¤ì¡¢¼¡¤ÎÆâÍƤòÀßÄꤹ¤ëÊÑ¿ô¤Ç¤¹¡§
ʸ»ú¤Î¼ïÎà¤È¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¡¢
¥á¥Ã¥»¡¼¥¸É½¼¨¤Ë»ÈÍѤ¹¤ë¸À¸ì¡¢
¥½¡¼¥È¤Î¥ë¡¼¥ë¡¢
¿ô»ú¤Î½ñ¼°¡¢
Ä̲ߤνñ¼°¡¢
ÆüÉդȻþ´Ö¤Îɽ¼¨
<P>
<DT><B>LANG</B><DD><P>Á´¤Æ¤Î LC_* ÊÑ¿ô¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤǤ¹¡£
LC_* ¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢LANG ¤ÎÃͤ¬Å¬ÍѤµ¤ì¤Þ¤¹¡£
<P>
</DL>

(¾ÜºÙ¤Ï `<CODE>man 7 locale</CODE>' ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)
<P>¤½¤ì¤¾¤ì¤Î LC_* ¤È LANG ÊÑ¿ô¤Ë¤Ï¡¢¼¡¤Î¤è¤¦¤Ê·Á¤Ç¥í¥±¡¼¥ë̾¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
<P>
<BLOCKQUOTE>
language[_territory[.codeset]][@modifier]
</BLOCKQUOTE>
<P>¤³¤³¤Ç language ¤Ï 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/ISO_639.html">ISO 639</A>
language code(¾®Ê¸»ú)¡¢territory ¤Ï 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/ISO_3166.html">ISO 3166</A>
country code(Âçʸ»ú)¡¢codeset ¤Ïʸ»ú¥»¥Ã¥È¤ò°ÕÌ£¤·¡¢modifier ¤Ï¤½¤Î¾¤Î
ÆÃÊ̤Ê°À­(Î㤨¤Ð¡¢Êý¸À¤äɸ½à¤È¤Ï°ã¤Ã¤¿ÄÖ¤ê¤Ê¤É)¤òɽ¤·¤Æ¤¤¤Þ¤¹¡£
<P>LANGUAGE ¤Ë¤Ï¡¢Ê£¿ô¤Î¥í¥±¡¼¥ë̾¤ò¥³¥í¥ó¤Ç¶èÀڤäƻØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
<P>¥·¥¹¥Æ¥à¤ä¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë UTF-8 ¤ò»ÈÍѤ·¤Æ¤¤¤ë¤È»ØÄꤹ¤ë¤¿¤á¤Ë¤Ï¡¢
¥í¥±¡¼¥ë̾¤Ë¥³¡¼¥É¥»¥Ã¥È¤Î¥µ¥Õ¥£¥Ã¥¯¥¹¤È¤·¤Æ UTF-8 
¤òÄɲ乤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢
<BLOCKQUOTE><CODE>
<PRE>
LANGUAGE=de:fr:en
LC_CTYPE=de_DE
</PRE>
</CODE></BLOCKQUOTE>

¤ò»ÈÍѤ·¤Æ¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢¤³¤Î¤è¤¦¤ËÊѹ¹¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
LANGUAGE=de.UTF-8:fr.UTF-8:en.UTF-8
LC_CTYPE=de_DE.UTF-8
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss4.5">4.5 ¥í¥±¡¼¥ë¥µ¥Ý¡¼¥È¥Õ¥¡¥¤¥ë¤ÎºîÀ®</A>
</H2>

<P>
<P>glibc-2.1¡¢glibc-2.1.1¡¢glibc-2.1.2 ¤Î¤É¤ì¤«¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¤¤ë¾ì¹ç¤Ë
¤Ï¡¢¤Þ¤º "localedef --help" ¤ò»ÈÍѤ·¤Æ¡¢Ê¸»ú¥Þ¥Ã¥×¤Î¥·¥¹¥Æ¥à¥Ç¥£¥ì
¥¯¥È¥ê¤¬ /usr/share/i18n/charmaps ¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£¼¡¤Ë 
/usr/share/i18n/charmaps/UTF8 ¥Õ¥¡¥¤¥ë¤Ë 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/glibc21.diff">glibc21.diff</A>, 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/glibc211.diff">glibc211.diff</A>, 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/glibc212.diff">glibc212.diff</A> ¤ÎÂбþ¤¹¤ë¥Ñ¥Ã¥Á¤ò¤¢¤Æ¤Þ¤¹¡£¤½¤·¤Æ¡¢Î㤨¤Ð¤³¤Î¤è¤¦
¤Ë¤·¤ÆÍøÍѤ¹¤ë UTF-8 ¥í¥±¡¼¥ëÍѤΥµ¥Ý¡¼¥È¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ localedef -v -c -i de_DE -f UTF8 /usr/share/locale/de_DE.UTF-8
</PRE>
</CODE></BLOCKQUOTE>
<P>Ä̾ï¤Ï country ¥µ¥Õ¥£¥Ã¥¯¥¹¤Ê¤·¤Î "de" ¤ä "fr" ¤È¤¤¤Ã¤¿¥í¥±¡¼¥ë¤òºîÀ®
¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤é¤Î¥í¥±¡¼¥ë¤ÏÂçÄñ¤Î¾ì¹ç¤Ë¤Ï LANGUAGE ÊÑ¿ô¤«¤é
»È¤ï¤ì¤ë¤À¤±¤Ç¡¢LC_* ÊÑ¿ô¤Ë¤Ï»È¤ï¤ì¤Ê¤¤¤«¤é¤Ç¤¹¡£¤Þ¤¿¡¢LANGUAGE ¤¬»È¤ï¤ì
¤ë¤Î¤Ï LC_MESSAGES ¤ÎÀßÄê¤ò¾å½ñ¤­¤¹¤ë¾ì¹ç¤À¤±¤Ç¤¹¡£
<P>
<H2><A NAME="ss4.6">4.6 C ¥é¥¤¥Ö¥é¥ê¤Ë¥µ¥Ý¡¼¥È¤òÄɲ乤ë</A>
</H2>

<P>
<P>glibc-2.2 ¤Ï¥Þ¥ë¥Á¥Ð¥¤¥È¤Î¥í¥±¡¼¥ë¡¢Æä˾嵭¤ÇºîÀ®¤µ¤ì¤¿ UTF-8 ¥í¥±¡¼¥ë
¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£¤Ç¤¹¤¬ glibc-2.1 ¤ä glibc-2.1.1 ¤Ï¼ÂºÝ¤Ë¤Ï¥Þ¥ë¥Á¥Ð¥¤¥È
¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤»¤ó¡£¤Ä¤Þ¤ê¾åµ­¤ÇºîÀ®¤·¤¿ /usr/share/locale/de_DE.UTF-8/* 
¥Õ¥¡¥¤¥ë¤Î¼ÂºÝ¤Î¸ú²Ì¤Ï¡¢`setlocale(LC_ALL,"")' ¤¬´Ä¶­ÊÑ¿ô¤ÎÀßÄê¤Ë¤è¤ê 
".UTF-8" ¥µ¥Õ¥£¥Ã¥¯¥¹¤ò¼è¤ê½ü¤«¤º¤Ë "de_DE.UTF-8" ¤òÊÖ¤¹¤À¤±¤Ç¤¹¡£
<P>UTF-8 ¥í¥±¡¼¥ë¤Î¥µ¥Ý¡¼¥È¤òÄɲ乤ë¤Ë¤Ï `libutf8_plug.so' ¥é¥¤¥Ö¥é¥ê 
<A HREF="ftp://ftp.ilog.fr/pub/Users/haible/utf8/libutf8-0.6.2.tar.gz">libutf8-0.6.2.tar.gz</A> ¤ò¥Ó¥ë¥É¤·¤Æ¡¢¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£
¤½¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥é¥¤¥Ö¥é¥ê¤ò»Ø¤¹¤è¤¦¤Ë LD_PRELOAD 
´Ä¶­ÊÑ¿ô¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ export LD_PRELOAD=/usr/local/lib/libutf8_plug.so
</PRE>
</CODE></BLOCKQUOTE>

¤³¤ì¤Ç¡¢¤³¤Î´Ä¶­ÊÑ¿ô¤¬¥»¥Ã¥È¤µ¤ì¤Æµ¯Æ°¤µ¤ì¤¿Á´¤Æ¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç 
libutf8_plug.so ¤Î´Ø¿ô¤¬ /lib/libc.so.6 ¤Î¥ª¥ê¥¸¥Ê¥ë¤Î¤â¤Î¤è¤êÍ¥À褵¤ì¤Þ¤¹¡£
LD_PRELOAD ¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï "man 8 ld.so" ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>¤³¤³¤Ç½Ò¤Ù¤¿Á´¤Æ¤Î¤³¤È¤Ï¡¢glibc-2.2 ¤¬½Ð¤ì¤Ð¤â¤Ï¤äɬÍפʤ¯¤Ê¤ê¤Þ¤¹¡£
<P>
<H2><A NAME="ss4.7">4.7 ¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤Î¥³¥ó¥Ð¡¼¥È</A>
</H2>

<P>
<P>¤µ¤Æ¿·¤·¤¤¥í¥±¡¼¥ë¤ÎÃæ¿È¤òËä¤á¤Þ¤·¤ç¤¦¡£¼¡¤Î /bin/sh ¥³¥Þ¥ó¥É¤Ï¥á¥Ã¥»¡¼
¥¸¥«¥¿¥í¥°¤ò UTF-8 ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¥³¥ó¥Ð¡¼¥È¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï 
root ¤Ç¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ê¡¢¤Þ¤¿ GNU gettext-0.10.35 ¤Î `msgfmt' ¤È 
`msgunfmt' ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
<A HREF="convert-msgcat.sh">convert-msgcat.sh</A><P>¤³¤ì¤â glibc-2.2 ¤¬½Ð¤ì¤Ð¤â¤Ï¤äɬÍפʤ¯¤Ê¤ê¤Þ¤¹¡£¤½¤Î»þ¤Þ¤Ç¤Ë¤Ï gettext 
¤Ï iconv ¤ä librecode ¤ò»ÈÍѤ·¤Æ¡¢Ê¸»úÎó¤òŬÀڤ˸µ¤Îʸ»ú¥»¥Ã¥È¤«¤é¥æ¡¼¥¶¡¼
¤Îʸ»ú¥»¥Ã¥È¤Ø¥³¥ó¥Ð¡¼¥È¤¹¤ë¤Ç¤·¤ç¤¦¤«¤é¡£
<P>
<HR>
<A HREF="Unicode-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Unicode-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Unicode-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
</BODY>
</HTML>