From nakao@sysrap.cs.fujitsu.co.jp Fri Jun 14 16:08:28 1991 Received: from mcsun.EU.net by dkuug.dk via EUnet with SMTP (5.64+/8+bit/IDA-1.2.8) id AA04597; Fri, 14 Jun 91 16:08:28 +0200 Received: from relay2.UU.NET by mcsun.EU.net with SMTP; id AA24259 (5.65a/CWI-%I%); Fri, 14 Jun 91 13:37:54 +0200 Received: from uunet.uu.net (via LOCALHOST.UU.NET) by relay2.UU.NET with SMTP (5.61/UUNET-internet-primary) id AA05911; Fri, 14 Jun 91 07:36:31 -0400 Received: from fai.UUCP by uunet.uu.net with UUCP/RMAIL (queueing-rmail) id 073523.17461; Fri, 14 Jun 1991 07:35:23 EDT Received: by fai.fai.com; id AA05212; Fri, 14 Jun 91 01:02:21-1795 Received: from fgw.fujitsu.co.jp (fgw.ARPA) by a50.fujitsu.co.jp (4.12/6.4J.4 *** FUJITSU National Gateway ***) id AA01334; Fri, 14 Jun 91 16:45:50 JST Received: from [133.161.1.9] by fgw.fujitsu.co.jp (5.65/6.4J.6) id AA26603; Fri, 14 Jun 91 17:01:29 +0900 Received: by spad.sysrap.cs.fujitsu.co.jp (4.12/6.4J.6) id AA05163; Fri, 14 Jun 91 16:57:11 JST Received: by sigma200.sysrap.cs.fujitsu.co.jp (4.12/6.4J.6) id AA25875; Fri, 14 Jun 91 16:55:14 JST Date: Fri, 14 Jun 91 16:55:14 JST From: nakao@sysrap.cs.fujitsu.co.jp (Shigekatsu Nakao) Return-Path: Message-Id: <9106140755.AA25875@sigma200.sysrap.cs.fujitsu.co.jp> To: wg15rin@dkuug.dk Subject: Draft Japanese National Profile (nroff-part 1) X-Charset: ASCII X-Char-Esc: 29 Below is the first part of nroff version of Draft japanese National Profile. Shigekatsu Nakao voice: +81-44-754-3342 Fujitsu Limited fax: +81-44-754-3522 Japan email: nakao@sysrap.cs.fujitsu.co.jp #! /bin/sh # This is a shell archive file contains: # part1 # On: 06/14/91 16:45, By: nakao # --------------------------------------- echo x - part1 1>&2 sed "s/.//" <<"//GO.SYSIN DD part1" >part1 X X X X X X X X X X X X X X X99 DDDDrrrraaaafffftttt X9 JJJJaaaappppaaaannnneeeesssseeee NNNNaaaattttiiiioooonnnnaaaallll PPPPrrrrooooffffiiiilllleeee ffffoooorrrr PPPPOOOOSSSSIIIIXXXX X X99 VVVVeeeerrrrssssiiiioooonnnn 1111....1111 X X X X X X X X X X X X X X X X DDDDeeeevvvveeeellllooooppppeeeedddd bbbbyyyy X X9 IIIIPPPPSSSSJJJJ////IIIITTTTSSSSCCCCJJJJ SSSSSSSSIIII////PPPPOOOOSSSSIIIIXXXX WWWWGGGG X X99 JJJJuuuunnnneeee 1111999999991111 X X9 This is a working draft and is subject to change. X Do not use this document for any other purposes X than pure study and/or review. X X X X X X X X X X X X9 X X X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 2 FFFFoooorrrreeeewwwwoooorrrrdddd X X X X 3 (_T_h_i_s _F_o_r_e_w_o_r_d _i_s _n_o_t _a _n_o_r_m_a_t_i_v_e _p_a_r_t _o_f _t_h_i_s _d_o_c_u_m_e_n_t, _b_u_t X 4 _i_s _i_n_c_l_u_d_e_d _f_o_r _i_n_f_o_r_m_a_t_i_o_n _o_n_l_y.) X X 5 Draft Japanese National Profile for POSIX (this document), X 6 is an attempt to define Japanese environments where ISO 9945 X 7 POSIX Standard is employed. X X 8 This document was developed by SSI/POSIX Working Group of X 9 Information Technology Standards Commission of Japan X 10 (ITSCJ), Information Processing Society of Japan (IPSJ). X X 11 The base of this document was the one titled Japanese X 12 National Profiles for POSIX, Preliminary Draft, ITSCJ X 13 SSI/POSIX, September 1990, and was registered as X 14 JTC1/SC22/WG15 N122 in November 1990. X X 15 It must be noted that there are still quite a few number of X 16 issues to be solved to define Japanese National Profile for X 17 POSIX. One of them is the definition of POSIX National X 18 Profile itself and interrelationship among various POSIX X 19 National Profiles. It must be mentioned here that to cover X 20 such issues, SSI/POSIX Working Group is working on another X 21 document titled Guidelines for POSIX National Profiles. X 22 Other unresolved issues will be discussed in the appropriate X 23 sections in this document. X X 24 At this point of time, this document has nothing to do with X 25 formal national body conformance. It is however the X 26 intention of SSI/POSIX Working Group that when Japanese X 27 national body starts discussion in the future on such X 28 standard of POSIX profile for Japanese environments, this X 29 document should be used as the draft at its beginning. X X 30 Suggenstions and comments for improvement of this document X 31 are welcome. They should be sent to: X X X X X X X X X X X X X X X Foreword 1 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 32 Prof. Nobuo Saito X 33 Chair of SSI/POSIX Working Group X 34 Informaton Techonology Standards Commission of Japan X 35 Kikai-Shinko Kaikan Bldg. X 36 3-5-8 Shiba-Koen, Minato-ku, X 37 Tokyo 105, JAPAN X X 38 Tel: +81-3-3431-2808 X 39 Fax: +81-3-3431-6493 X X 40 email: posix@u-tokyo.ac.jp X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 2 Foreword X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 41 The following persons participated in the development of X 42 this document in SSI/POSIX Working Group: X X 43 Yuichi Chujo, NTT X 44 Kazuyoshi Fukumura, NEC X 45 Nobuyuki Hikichi, SRA X 46 Shiro Hikita, Sony X 47 Yukiharu Imafuku, NTT Data X 48 Akihisa Iwakawa, IBM Japan X 49 Akio Kido, IBM Japan X 50 Takao Komatsu, Mitsubishi X 51 Akihiko Kudoh, NTT X 52 Yutaka Matsumoto, Nihon Sun X 53 Yasushi Nakahara, Toshiba X 54 Shigekatsu Nakao, Fujitsu X 55 Toshinori Numata, Fujitsu X 56 Shinji Ohta, Fuji Xerox X 57 Toshiharu Ono, Nihon UNISYS X 58 Erik van der Poel, SRA X 59 Nobuo Saito, Keio University X 60 Masahiko Sekiguchi, Fujitsu X 61 Hiroyuki Shiota, Fuji Xerox X 62 Shin-ichi Yamada, NTT Data X 63 Mamoru Yanagihara, DEC Japan X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Foreword 3 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 65 IIIInnnnttttrrrroooodddduuuuccccttttiiiioooonnnn X X X X 66 (_T_h_i_s _I_n_t_r_o_d_u_c_t_i_o_n _i_s _n_o_t _a _n_o_r_m_a_t_i_v_e _p_a_r_t _o_f _t_h_i_s _d_o_c_u_m_e_n_t, X 67 _b_u_t _i_s _i_n_c_l_u_d_e_d _f_o_r _i_n_f_o_r_m_a_t_i_o_n _o_n_l_y.) X X 68 The purpose of this document is to define a minimal and X 69 appropriate set of POSIX.1, POSIX.2 and C Standards for X 70 Japanese environments where ISO 9945 POSIX Standard is X 71 employed. X X 72 Following the definition of profile in TR10000-1, this X 73 document defines only parameters and options. X X 74 Section 1 is for general matters such as scope, references, X 75 objectives and conformance. The section also includes some X 76 description on special remarks in Japanese National Profile, X 77 mainly about Japanese characters. X X 78 Section 2 defines system parameters of POSIX.1, POSIX.2 and X 79 C language. X X 80 Section 3 defines various Japanese locale. X X 81 Annex A, an informative section, is for rationale and notes X 82 where available. X X 83 The changes from Version 1.0 to 1.1 are marked with "1" 1 X 84 which are all editorial. X X X X X X X X X X X X X X X X X X X X X X X X 4 Introduction X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 86 Section 1 GGGGeeeennnneeeerrrraaaallll X X X X X 88 1.1 SSSSccccooooppppeeee X X 89 Japanese National Profile for POSIX is defined for Japanese X 90 environments where ISO 9945 POSIX Standard is employed. X 91 According to Guidelines for POSIX National Profiles, it X 92 gives the specifications of the parameters and the X 93 selections of optional items of POSIX Standard which are X 94 strongly related to the functionalities to support X 95 processing and the operation of the culture and language X 96 dependent matters of Japan and Japanese. X X 98 1.2 RRRReeeeffffeeeerrrreeeennnncccceeeessss X X 99 The following standards contain provisions which constitute X 100 provisions of this document. X X 101 o+ ISO 9945-1:1990, System Application Program Interface X 102 (C language) (POSIX.1) X X 103 o+ IEEE P1003.2/D11, Shell and Utilities (POSIX.2) X X 104 o+ ISO 646 X X 105 o+ ISO 2022 X X 106 o+ ISO 8859 X X 107 o+ ISO DIS 10646 X X 108 o+ ISO/IEC Directive Part 3 X X 109 o+ ISO 9899, Programming Languages - C X X 110 o+ ISO 9899 PDAM Part 3, Multibyte Support Extensions X X 111 o+ TSG-1 Final Report (Draft) X X 112 o+ IEEE P1003.0/D10 X X 113 o+ Japanese version of ISO 646 X X 114 o+ JIS X0201 X X 115 o+ JIS X0208 X X X X X 1.2 References 5 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 116 o+ JIS X0212 X X 117 o+ TR10000-1 X X 118 o+ Guidelines for POSIX National Profiles X X 120 1.3 OOOObbbbjjjjeeeeccccttttiiiivvvveeeessss X X 121 The objectives of this document are: X X 122 o+ Define a minimal and appropriate set of specifications X 123 to satisfy the needs for Japanese environment, as well X 124 as to promote: X X 125 - POSIX conforming system implementation; X X 126 - Portable application development; X X 127 - Conformance test of them. X X 128 o+ Further define the following specifications in POSIX.1 X 129 and POSIX.2: X X 130 - Parameters X X 131 - Options X X 133 1.4 JJJJaaaappppaaaannnneeeesssseeee PPPPOOOOSSSSIIIIXXXX CCCCoooonnnnffffoooorrrrmmmmaaaannnncccceeee X X 135 1.4.1 SSSSyyyysssstttteeeemmmm RRRReeeeqqqquuuuiiiirrrreeeemmmmeeeennnnttttssss X 136 A Japanese POSIX conforming system implementation is X 137 required to have following facilities and characteristics: X X 138 o+ The system shall support all required parameters and X 139 options defined in this document. X X 140 o+ The system may support additional parameters and X 141 options not required by this document. Such parameters X 142 and options should be identified as such in the system X 143 documentation. X X 145 1.4.2 AAAApppppppplllliiiiccccaaaattttiiiioooonnnn CCCCoooonnnnffffoooorrrrmmmmaaaannnncccceeee X 146 In Japan, there are several encoding schemes for Japanese X 147 characters (e.g. JIS X0202, EUC, Shifted JIS, etc.). X 148 Therefore, this profile does not care about encoding scheme. X 149 It means that a Japanese POSIX conforming application shall X 150 be character encoding independent. X X X X X X X 6 General X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 152 1.4.3 CCCC llllaaaannnngggguuuuaaaaggggeeee X 153 A Japanese POSIX conforming system shall support ISO 9899 X 154 (full functions). And also, 'Multibyte Support Extension' X 155 specified in ISO 9899 PDAM Part 3 shall be supported, when X 156 it has been adopted as an addendum of the International X 157 Standard. X X 159 1.4.4 RRRReeeellllaaaattttiiiioooonnnnsssshhhhiiiipppp wwwwiiiitttthhhh PPPPOOOOSSSSIIIIXXXX CCCCoooonnnnffffoooorrrrmmmmaaaannnncccceeee X 160 Since Japanese National Profile for POSIX is not necessarily X 161 included in the POSIX Profile, those systems which pass the X 162 Japanese National Profile for POSIX may not pass the POSIX X 163 Conformance. X X 166 1.5 SSSSppppeeeecccciiiiaaaallll RRRReeeemmmmaaaarrrrkkkkssss iiiinnnn DDDDeeeeffffiiiinnnniiiinnnngggg JJJJaaaappppaaaannnneeeesssseeee NNNNa aaattttiiiioooonnnnaaaallll PPPPrrrrooooffffiiiilllleeee X 167 ffffoooorrrr PPPPOOOOSSSSIIIIXXXX X X 169 1.5.1 CCCChhhhaaaarrrraaaacccctttteeeerrrr NNNNaaaammmmiiiinnnngggg X 170 In the character map table for Japanese environments, it is X 171 necessary to assign a name for each of the Kanji characters, X 172 the number of which is far more than several thousands. X 173 Because the number is so large, it is very difficult to X 174 assign a unique and meaningful name for each Kanji. X X 175 It might be possible to refer ISO DIS 10646 because ISO DIS X 176 10646 contains all the characters in JIS X0208, including X 177 Kanji, with their character names. In ISO DIS 10646, each X 178 of the Kanji character names consists of associating code of X 179 its position in JIS X0208. Although the naming method is X 180 fine in terms of the uniqueness, the given name does not X 181 imply any glyph nor meaning of the corresponding Kanji X 182 character itself, i.e., the readers cannot guess the X 183 character at all without looking at the JIS X0208 code X 184 table. X X 185 Although ISO DIS 10646 might be a good reference for Kanji X 186 character set, there is still another issue with it which is X 187 associated with the character width. Many existing systems X 188 is Japan distinguish what are called single width alphabet X 189 and Katakana characters from double width ones. the former X 190 is almost always referred to with JIS X0201, and the latter X 191 with JIS X0208. ISO DIS 10646, on the other hand, does not X 192 distinguish them each other. X X 194 1.5.2 GGGGllllyyyypppphhhh UUUUssssaaaaggggeeee iiiinnnn CCCChhhhaaaarrrraaaacccctttteeeerrrr MMMMaaaapppp TTTTaaaabbbblllleeee DDDDeeeeffffiii innnniiiittttiiiioooonnnn X 195 In the character map table of National Profile for POSIX, X 196 all the characters used are defined with a portable X 197 character set of POSIX. Based on this rule, it is not X 198 allowed to use a Kanji character glyph in this character map X 199 table. However, it is desirable if the format of the X 200 character map table allows comment columns to have Kanji X 201 character and other glyphs which will be of a great help for X X X 1.5 Special Remarks in Defining Japanese National Profile for POSIX7 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 202 the readers to recognize the Kanji characters. X X 204 1.5.3 CCCChhhhaaaarrrraaaacccctttteeeerrrr CCCCooooddddiiiinnnngggg X 205 In Japan, A Kanji character set is defined as JIS X0208, and X 206 October, 1990, a supplementary Kanji character set was X 207 defined as JIS X0212. They are defined as Information X 208 Interchange Code Sets, and they are encoded by using two X 209 octet 7-bit code. Using ISO 2022 procedure, these are used X 210 for transmission, and for processing in some cases. X X 211 In order to make the code processing more effective, several X 212 encoding schemes like Shift-JIS or UJIS (JIS based on EUC) X 213 are defined in Japan. Since there are many commercial X 214 products which are based on these modified encoding scheme, X 215 it is necessary to include some description about these X 216 non-standard encoding scheme in the Japanese National X 217 Profile for POSIX. X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 8 General X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 219 Section 2 PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss aaaannnndddd OOOOppppttttiiiioooonnnnssss X X X X X 221 2.1 CCCChhhhaaaarrrrmmmmaaaapppp ((((PPPPOOOOSSSSIIIIXXXX....2222)))) X X 223 2.1.1 CCCChhhhaaaarrrraaaacccctttteeeerrrr CCCCooooddddeeeessss aaaannnndddd GGGGllllyyyypppphhhhssss iiiinnnn tttthhhheeee NNNNaaaattttiiiiooo onnnnaaaallll SSSSttttaaaannnnddddaaaarrrrdddd X 224 Japanese national body conforming POSIX systems are required X 225 to have following facilities and characteristics: X X 226 Character repertoire: In addition to Japanese version of ISO X 227 646, Japan has three coded character set X 228 standards, namely JIS X0201, JIS X0208 X 229 and JIS X0212. In addition, many vendors X 230 support user defined and/or vendor X 231 defined characters called "Gaiji" that X 232 are not part of the national standard X 233 character sets. X X 234 However, Japanese national body X 235 conformance requires the support of the X 236 full repertoire of Japanese version of X 237 ISO 646 and JIS X0208 only. At least one X 238 charmap that includes all of the X 239 Japanese version of ISO 646 and JIS X 240 X0208 characters shall be provided. X X 241 Support for JIS X0201 and JIS X0212 is X 242 recommended, though not required. X X 243 Encoding scheme: In Japan, there are several encoding X 244 schemes for Japanese characters (e.g. X 245 JIS X0202, EUC, Shifted JIS, etc.). X 246 Therefore, this profile does not care X 247 about encoding scheme. It means that X 248 Japanese POSIX conforming application X 249 shall be character encoding independent. X X 251 2.1.2 IIIImmmmpppplllleeeemmmmeeeennnnttttaaaattttiiiioooonnnn IIIIssssssssuuuueeeessss X 252 A large number of characters and existence of character X 253 codes that use state-depend encodings, among other reasons, X 254 make it hard to write a charmap for the Japanese language. X 255 To complicate the matter, most implementations treat the X 256 overlapping characters in JIS X0201 and JIS X0208 as having X 257 different encodings. X X 258 The problems we have encountered so far are: X X 259 o+ Some codesets employ stateful encoding scheme, where X 260 the interpretation of an binary encoded sequence may X X X 2.1 Charmap (POSIX.2) 9 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 261 change according to the designation/invocation at that X 262 time. X X 263 o+ There are several encoding. Some systems and hardware X 264 use proprietary ones. X X 265 o+ The agreement has never been reached on how to handle X 266 the overlapping characters in JIS X0201 and JIS X0208 X 267 in charmap. X X 268 o+ It is impractical to list all the characters in the X 269 national standard, since there are about 10,000 X 270 printable characters. X X 273 2.2 CCCCHHHHAAAARRRR____BBBBIIIITTTT aaaannnndddd CCCChhhhaaaarrrraaaacccctttteeeerrrr HHHHaaaannnnddddlllliiiinnnngggg iiiinnnn CCCC LLLLaaaan nnngggguuuuaaaaggggeeee ((((IIIISSSSOOOO X 274 9999888899999999)))) X X 275 Japanese national body conforming POSIX systems are required X 276 that the CHAR_BIT value shall be 8. X X 277 This means that the JIS X0208 character set is defined as a X 278 non-single-byte extended character set in terms of ISO 9899, X 279 and the MB_CUR_MAX value is equal to or greater than 2. X X 281 2.3 DDDDeeeelllleeeetttteeee CCCChhhhaaaarrrraaaacccctttteeeerrrr ((((PPPPOOOOSSSSIIIIXXXX....1111)))) X X 282 It is important to notice that delete character operation X 283 should work normally even for multi-octet characters. That X 284 is, if there is a Kanji character, delete character input X 285 shall delete one Kanji character, as defined in POSIX.1. X X 287 2.4 FFFFiiiilllleeee NNNNaaaammmmeeee LLLLeeeennnnggggtttthhhh aaaannnndddd iiiittttssss HHHHaaaannnnddddlllliiiinnnngggg ((((PPPPOOOOSSSSIIIIX XXX....1111)))) X X 288 Japanese national body conforming POSIX systems are required X 289 that the POSIX_NO_TRUNC variable shall be set to true so X 290 that when the file name length exceeds the NAME_MAX in the X 291 midst of a multi-octet character, the ENAMETOOLONG error is X 292 reported without truncating a given file name string. X X 293 It is difficult and inefficient for the kernel to check the X 294 character boundary in stead of reporting the ENAMETOOLONG X 295 error because there might be escape characters intermingled X 296 in the string. X X 297 The NAME_MAX value, the maximum file name length, should be X 298 defined by considering the encoding scheme for multi-octet X 299 character sets. X X X X X X X 10 Parameters and Options X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 301 2.5 CCCChhhhaaaarrrraaaacccctttteeeerrrr EEEEnnnnccccooooddddiiiinnnngggg ffffoooorrrr PPPPaaaatttthhhh NNNNaaaammmmeeee DDDDeeeelllliiiimmmmi iiitttteeeerrrrssss ((((PPPPOOOOSSSSIIIIXXXX....1111)))) X X 302 It is necessary for the kernel to detect the character X 303 and in a path name, and these characters X 304 may be encoded as both ISO 646 characters (1 octet) and JIS X 305 Kanji characters (multi-octet). In order to avoid the X 306 confusion, it is recommended to use only 1 octet encoding X 307 for these two characters. X X 309 2.6 AAAArrrrcccchhhhiiiivvvveeee FFFFoooorrrrmmmmaaaatttt EEEExxxxtttteeeennnnssssiiiioooonnnnssss ((((PPPPOOOOSSSSIIIIXXXX....1111)))) X X 310 (_T_o _b_e _p_r_o_v_i_d_e_d.) X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 2.6 Archive Format Extensions (POSIX.1) 11 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 312 Section 3 JJJJaaaappppaaaannnneeeesssseeee LLLLooooccccaaaalllleeee ((((IIIISSSSOOOO 9999888899999999 aaaannnndddd PPPPOOOOSSSSIIIIXXXX....22 22)))) X X X X 313 The character set defined and used in this section consists X 314 of: X X 315 o+ Japanese version of ISO 646; X X 316 o+ All of the characters in JIS X0208. X X 317 Implementations shall suppport all of the above mentioned X 318 characters, and may contain more characters to support X 319 Japanese environments. The right-hand part of JIS X0201, X 320 Katakana syllabary, is highly recommended to be supported by X 321 implementations although the support is not mandatory for X 322 the conformance. In this section, a recommended example for X 323 the support of the right-hand part of JIS X0201 is given as X 324 comment lines where available. X X 325 Note that the character set includes undefined code points X 326 of JIS X0208. X X 327 Kanji are given names based on their ward-point number (in X 328 decimal) preceded by the letter j. For LC_COLLATE X 329 definition, another naming method is used for readabilily. X 330 Neither of these naming methods themselves is a part of X 331 requirement for the conformance. X X 333 3.1 LLLLCCCC____CCCCTTTTYYYYPPPPEEEE X X 334 Japanese national body conforming POSIX systems are required X 335 to have following facilities and characteristics: the X 336 LC_CTYPE category of the Japanese locale shall include the X 337 full JIS X0208 repertoire. X X 338 The characters in JIS X0208 shall be given classes as shown X 339 in the table below. Undefined character code points are not X 340 given any classes because they are not printable nor control X 341 characters: X X 342 (_T_h_i_s _t_a_b_l_e _i_s _n_o_t _c_o_m_p_l_e_t_e_d _y_e_t.) X X 343 TTTTAAAABBBBLLLLEEEE 1111.... Character classes of JIS X0208 characters X X 344 In JIS X0208 print graph alnum alpha digit xdigit ... X8 345 _____________________________________________________________________ X 346 Roman x x x x X 347 Hiragana x x X 348 Katakana x x X7 349 |8|7|7|7|9999999|8|7|7|7| X X X X X X X X 12 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 350 Kanji x x X 351 Russian x x x x X 352 Greek x x x x X 353 Number x x x X 354 Space x X7 355 |7|7|7|7|99999999|7|7|7|7| X X X X X X X 356 LC_CTYPE X X 357 # X 358 # Upper class: X 359 # alphabets in portable character set, X 360 # Roman letters in JIS X0208, X 361 # Greek letters in JIS X0208 and X 362 # Russian letters in JIS X0208. X 363 X 364 upper ;;;;;;;;;;;;;\ X 365 ;;

;;;;;;;;;;;\ X 379 ;...;;\ X 380 ;...;;\ X 381 ;...; X X 382 # X 383 # Alpha class (default): X 384 # Upper class X 385 # Lower class X 386 X 387 # X 388 # Digit class - same as defined in POSIX.2 X 389 # X X 390 digit ;;;;;\ X 391 ;;;; X X 392 # X 393 # Xdigit class - same as defined in POSIX.2 X 394 # X X X X 3.1 LC_CTYPE 13 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 395 xdigit ;;;;;\ X 396 ;;;;;\ X 397 ;;;;;;\ X 398 ;;;;; X X 399 # X 400 # Blank class - same as defined in POSIX.2 X 401 # X X 402 blank ; X X 403 # X 404 # Space class: X 405 # Space characters defined in POSIX.2 X 406 # Space in JIS X0208 X 407 # X 408 X 409 space ;;;;\ X 410 ;;\ X 411 X 412 X 413 # X 414 # Cntrl class - same as defined in POSIX.2 X 415 # X 416 X 417 cntrl ;;;;;\ X 418 ;;\ X 419 ;;;;;;;;\ X 420 ;;;;;;;;\ X 421 ;;;;;;;;\ X 422 ; X 423 X 424 # X 425 # Punct class - symbols in portable character set only X 426 # X 427 X 428 punct ;;;\ X 429 ;;;;\ X 430 ;;;\ X 431 ;;;;;\ X 432 ;;;;\ X 433 ;;\ X 434 ;\ X 435 ;;;;\ X 436 ;;\ X 437 ;\ X 438 ;;;; X 439 X 440 # X 441 # Graph X 442 # X X X 14 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 443 # upper, lower, alpha, digit, xdigit X 444 # JIS X0201 printable characters X 445 # JIS X0208 printable characters X X 446 graph ;;;\ X 447 ;;;;\ X 448 ;;;\ X 449 ;;;;;\ X 450 ;;;;;\ X 451 ;;;;;\ X 452 ;;;;\ X 453 ;;\ X 454 ;\ X 455 ;;;;;;;;;;;;;\ X 456 ;;

;;;;;;;;;;;\ X 457 ;;;;\ X 458 ;;\ X 459 ;\ X 460 ;;;;;;;;;;;;;\ X 461 ;;

;;;;;;;;;;;\ X 462 ;;;;\ X 463 # X 464 # The following six comment lines are recommendations for the support of X 465 # the right-hand part of JIS X0208, Katakana syllabary: X 466 # X 467 # ;;;\ X 468 # ;;\ X 469 # ;...;;\ X 470 # ;\ X 471 # ;...;;\ X 472 # ;;\ X 473 # X 474 ;...;;\ X 475 ;...;;\ X 476 ;...;;\ X 477 ;...;;\ X 478 ;\ X 479 ;\ X 480 ;\ X 481 ;...;;\ X 482 ;...;;\ X 483 ;\ X 484 ;\ X 485 ;\ X 486 ;...;;\ X 487 ;\ X 488 ;...;;\ X 489 ;...;;\ X 490 ;...;;\ X 491 ;...;;\ X 492 ;...;;\ X X X 3.1 LC_CTYPE 15 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 493 ;...;;\ X 494 ;...;;\ X 495 ;...;;\ X 496 ;...;;\ X 497 ;...;;\ X 498 ;...;;\ X 499 ;...;;\ X 500 ;...;;\ X 501 ;...;;\ X 502 ;\ X 503 ;...;;\ X 504 ;...;;\ X 505 ;...;;\ X 506 ;...;;\ X 507 ;\ X 508 ;...;;\ X 509 ;...;;\ X 510 ;\ X 511 ;...;;\ X 512 ;\ X 513 ;...;;\ X 514 ;...;;\ X 515 ;\ X 516 ;...;;\ X 517 ;...;;\ X 518 ;\ X 519 ;...;;\ X 520 ;\ X 521 ;...;;\ X 522 ;...;;\ X 523 ;...;;\ X 524 ;...;;\ X 525 ;\ X 526 ;...;;\ X 527 ;...;;\ X 528 ;\ X 529 ;...;;\ X 530 ;...;;\ X 531 ;...;;\ X 532 ;...;;\ X 533 ;\ X 534 ;\ X 535 ;\ X 536 ;\ X 537 ;...;;\ X 538 ;...;;\ X 539 ;...;;\ X 540 ;...;;\ X 541 ;...;;\ X 542 ;\ X 543 ;...;;\ X X X 16 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 544 ;...;;\ X 545 ;...;;\ X 546 ;...;;\ X 547 ;...;;\ X 548 ;\ X 549 ;...;;\ X 550 ;...;;\ X 551 ;...;;\ X 552 ;...;;\ X 553 ;\ X 554 ;...;;\ X 555 ;...;;\ X 556 ;...;;\ X 557 ;...;;\ X 558 ;...;;\ X 559 ;...;;\ X 560 ;\ X 561 ;...;;\ X 562 ;...;;\ X 563 ;\ X 564 ;...;;\ X 565 ;...;;\ X 566 ;\ X 567 ;...;;\ X 568 ;\ X 569 ;...;;\ X 570 ;...;;\ X 571 ;\ X 572 ;...;;\ X 573 ;...;;\ X 574 ;...;;\ X 575 ;\ X 576 ;...;;\ X 577 ;...;;\ X 578 ;...;;\ X 579 ;\ X 580 ;...;;\ X 581 ;...;;\ X 582 ;...;;\ X 583 ;...;;\ X 584 ;...;;\ X 585 ;\ X 586 ;...;;\ X 587 ;\ X 588 ;...;;\ X 589 ;...;;\ X 590 ;\ X 591 ;...;;\ X 592 ;...;;\ X 593 ;\ X 594 ;...;;\ X X X 3.1 LC_CTYPE 17 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 595 ;...;;\ X 596 ;...;;\ X 597 ;...;;\ X 598 ;\ X 599 ;...;;\ X 600 ;...;;\ X 601 ;\ X 602 ;...;;\ X 603 ;...;;\ X 604 ;...;;\ X 605 ;...;;\ X 606 ;...;;\ X 607 ;...;;\ X 608 ;...;;\ X 609 ;\ X 610 ;...;;\ X 611 ;...;;\ X 612 ;...;;\ X 613 ;...;;\ X 614 ;...;;\ X 615 ;...;;\ X 616 ;...;;\ X 617 ;...;;\ X 618 ;...;;\ X 619 ;\ X 620 ;...;;\ X 621 ;...;;\ X 622 ;...;;\ X 623 ;\ X 624 ;...;;\ X 625 ;...;;\ X 626 ;\ X 627 ;...;;\ X 628 ;...;;\ X 629 ;...;;\ X 630 ;...;;\ X 631 ;...;;\ X 632 ;\ X 633 ;...;;\ X 634 ;\ X 635 ;...;;\ X 636 ;...;;\ X 637 ;...;;\ X 638 ;...;;\ X 639 ;\ X 640 ;...;;\ X 641 ;...;;\ X 642 ;...;;\ X 643 ;...;;\ X 644 ;\ X 645 ;\ X X X 18 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 646 ;\ X 647 ;...;;\ X 648 ;...;;\ X 649 ;\ X 650 ;...;;\ X 651 ;\ X 652 ;\ X 653 ;...;;\ X 654 ;...;;\ X 655 ;...;;\ X 656 ;...;;\ X 657 ;...;;\ X 658 ;...;;\ X 659 ;...;;\ X 660 ;...;;\ X 661 ;\ X 662 ;\ X 663 ;...;;\ X 664 ;\ X 665 ;...;;\ X 666 ;\ X 667 ;...;;\ X 668 ;...;;\ X 669 ;...;;\ X 670 ;\ X 671 ;...;;\ X 672 ;...;;\ X 673 ;\ X 674 ;\ X 675 ;\ X 676 ;...;;\ X 677 ;...;;\ X 678 ;\ X 679 ;...;;\ X 680 ;...;;\ X 681 ;...;;\ X 682 ;\ X 683 ;...;;\ X 684 ;...;;\ X 685 ;...;;\ X 686 ;...;;\ X 687 ;...;;\ X 688 ;\ X 689 ;...;;\ X 690 ;\ X 691 ;...;;\ X 692 ;...;;\ X 693 ;...;;\ X 694 ;...;;\ X 695 ;\ X 696 ;...;;\ X X X 3.1 LC_CTYPE 19 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 697 ;\ X 698 ;...;;\ X 699 ;...;;\ X 700 ;...;;\ X 701 ;\ X 702 ;\ X 703 ;\ X 704 ;\ X 705 ;\ X 706 X X 707 # X 708 # Print: X 709 # X 710 # space X 711 # upper, lower, alpha, digit, xdigit X 712 # JIS X0201 printable characters X 713 # JIS X0208 printable characters X X 714 print ;\ X 715 ;;;\ X 716 ;;;;\ X 717 ;;;\ X 718 ;;;;;\ X 719 ;;;;;\ X 720 ;;;;;\ X 721 ;;;;\ X 722 ;;\ X 723 ;\ X 724 ;;;;;;;;;;;;;\ X 725 ;;

;;;;;;;;;;;\ X 726 ;;;;\ X 727 ;;\ X 728 ;\ X 729 ;;;;;;;;;;;;;\ X 730 ;;

;;;;;;;;;;;\ X 731 ;;;;\ X 732 # X 733 # The following six comment lines are recommendations for the support of X 734 # the right-hand part of JIS X0208, Katakana syllabary: X 735 # X 736 # ;;;\ X 737 # ;;\ X 738 # ;...;;\ X 739 # ;\ X 740 # ;...;;\ X 741 # ;;\ X 742 # X 743 ;\ X 744 ;...;;\ X 745 ;...;;\ X X X 20 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 746 ;...;;\ X 747 ;...;;\ X 748 ;\ X 749 ;\ X 750 ;\ X 751 ;...;;\ X 752 ;...;;\ X 753 ;\ X 754 ;\ X 755 ;\ X 756 ;...;;\ X 757 ;\ X 758 ;...;;\ X 759 ;...;;\ X 760 ;...;;\ X 761 ;...;;\ X 762 ;...;;\ X 763 ;...;;\ X 764 ;...;;\ X 765 ;...;;\ X 766 ;...;;\ X 767 ;...;;\ X 768 ;...;;\ X 769 ;...;;\ X 770 ;...;;\ X 771 ;...;;\ X 772 ;\ X 773 ;...;;\ X 774 ;...;;\ X 775 ;...;;\ X 776 ;...;;\ X 777 ;\ X 778 ;...;;\ X 779 ;...;;\ X 780 ;\ X 781 ;...;;\ X 782 ;\ X 783 ;...;;\ X 784 ;...;;\ X 785 ;\ X 786 ;...;;\ X 787 ;...;;\ X 788 ;\ X 789 ;...;;\ X 790 ;\ X 791 ;...;;\ X 792 ;...;;\ X 793 ;...;;\ X 794 ;...;;\ X 795 ;\ X 796 ;...;;\ X X X 3.1 LC_CTYPE 21 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 797 ;...;;\ X 798 ;\ X 799 ;...;;\ X 800 ;...;;\ X 801 ;...;;\ X 802 ;...;;\ X 803 ;\ X 804 ;\ X 805 ;\ X 806 ;\ X 807 ;...;;\ X 808 ;...;;\ X 809 ;...;;\ X 810 ;...;;\ X 811 ;...;;\ X 812 ;\ X 813 ;...;;\ X 814 ;...;;\ X 815 ;...;;\ X 816 ;...;;\ X 817 ;...;;\ X 818 ;\ X 819 ;...;;\ X 820 ;...;;\ X 821 ;...;;\ X 822 ;...;;\ X 823 ;\ X 824 ;...;;\ X 825 ;...;;\ X 826 ;...;;\ X 827 ;...;;\ X 828 ;...;;\ X 829 ;...;;\ X 830 ;\ X 831 ;...;;\ X 832 ;...;;\ X 833 ;\ X 834 ;...;;\ X 835 ;...;;\ X 836 ;\ X 837 ;...;;\ X 838 ;\ X 839 ;...;;\ X 840 ;...;;\ X 841 ;\ X 842 ;...;;\ X 843 ;...;;\ X 844 ;...;;\ X 845 ;\ X 846 ;...;;\ X 847 ;...;;\ X X X 22 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 848 ;...;;\ X 849 ;\ X 850 ;...;;\ X 851 ;...;;\ X 852 ;...;;\ X 853 ;...;;\ X 854 ;...;;\ X 855 ;\ X 856 ;...;;\ X 857 ;\ X 858 ;...;;\ X 859 ;...;;\ X 860 ;\ X 861 ;...;;\ X 862 ;...;;\ X 863 ;\ X 864 ;...;;\ X 865 ;...;;\ X 866 ;...;;\ X 867 ;...;;\ X 868 ;\ X 869 ;...;;\ X 870 ;...;;\ X 871 ;\ X 872 ;...;;\ X 873 ;...;;\ X 874 ;...;;\ X 875 ;...;;\ X 876 ;...;;\ X 877 ;...;;\ X 878 ;...;;\ X 879 ;\ X 880 ;...;;\ X 881 ;...;;\ X 882 ;...;;\ X 883 ;...;;\ X 884 ;...;;\ X 885 ;...;;\ X 886 ;...;;\ X 887 ;...;;\ X 888 ;...;;\ X 889 ;\ X 890 ;...;;\ X 891 ;...;;\ X 892 ;...;;\ X 893 ;\ X 894 ;...;;\ X 895 ;...;;\ X 896 ;\ X 897 ;...;;\ X 898 ;...;;\ X X X 3.1 LC_CTYPE 23 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 899 ;...;;\ X 900 ;...;;\ X 901 ;...;;\ X 902 ;\ X 903 ;...;;\ X 904 ;\ X 905 ;...;;\ X 906 ;...;;\ X 907 ;...;;\ X 908 ;...;;\ X 909 ;\ X 910 ;...;;\ X 911 ;...;;\ X 912 ;...;;\ X 913 ;...;;\ X 914 ;\ X 915 ;\ X 916 ;\ X 917 ;...;;\ X 918 ;...;;\ X 919 ;\ X 920 ;...;;\ X 921 ;\ X 922 ;\ X 923 ;...;;\ X 924 ;...;;\ X 925 ;...;;\ X 926 ;...;;\ X 927 ;...;;\ X 928 ;...;;\ X 929 ;...;;\ X 930 ;...;;\ X 931 ;\ X 932 ;\ X 933 ;...;;\ X 934 ;\ X 935 ;...;;\ X 936 ;\ X 937 ;...;;\ X 938 ;...;;\ X 939 ;...;;\ X 940 ;\ X 941 ;...;;\ X 942 ;...;;\ X 943 ;\ X 944 ;\ X 945 ;\ X 946 ;...;;\ X 947 ;...;;\ X 948 ;\ X 949 ;...;;\ X X X 24 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 950 ;...;;\ X 951 ;...;;\ X 952 ;\ X 953 ;...;;\ X 954 ;...;;\ X 955 ;...;;\ X 956 ;...;;\ X 957 ;...;;\ X 958 ;\ X 959 ;...;;\ X 960 ;\ X 961 ;...;;\ X 962 ;...;;\ X 963 ;...;;\ X 964 ;...;;\ X 965 ;\ X 966 ;...;;\ X 967 ;\ X 968 ;...;;\ X 969 ;...;;\ X 970 ;...;;\ X 971 ;\ X 972 ;\ X 973 ;\ X 974 ;\ X 975 ;\ X 976 X X 977 # X 978 # Toupper and tolower - also handle Roman, Greek and Russian X 979 # characters in JIS X0208 X 980 # X 981 X 982 toupper (,);(,);(,);(,);(,);\ X 983 (,);(,);(,);(,);(,);\ X 984 (,);(,);(,);(,);(,);\ X 985 (

,

);(,);(,);(,);(,);\ X 986 (,);(,);(,);(,);(,);\ X 987 (,);\ X 988 (,);(,);(,);\ X 989 (,);(,);(,);\ X 990 (,);(,);(,);\ X 991 (,);(,);(,);\ X 992 (,);(,);(,);\ X 993 (,);(,);(,);\ X 994 (,);(,);(,);\ X 995 (,);(,);(,);\ X 996 (,);(,);\ X 997 (,);(,);(,);\ X 998 (,);(,);(,);\ X 999 (,);(,);(,);\ X X X 3.1 LC_CTYPE 25 X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 1000 (,);(,);(,);\ X 1001 (,);(,);(,);\ X 1002 (,);(,);(,);\ X 1003 (,);(,);(,);\ X 1004 (,);(,);(,);\ X 1005 (,);(,);(,);\ X 1006 (,);(,);(,);\ X 1007 (,);(,);(,);\ X 1008 (,);(,);(,);\ X 1009 (,);(,);(,);\ X 1010 (,);(,);(,);\ X 1011 (,);(,);(,);\ X 1012 (,);(,);(,);\ X 1013 (,);(,);(,);\ X 1014 (,);(,);(,);\ X 1015 (,);(,);(,) X X 1016 tolower (,);(,);(,);(,);(,);\ X 1017 (,);(,);(,);(,);(,);\ X 1018 (,);(,);(,);(,);(,);\ X 1019 (

,

);(,);(,);(,);(,);\ X 1020 (,);(,);(,);(,);(,);\ X 1021 (,);\ X 1022 (,);(,);(,);\ X 1023 (,);(,);(,);\ X 1024 (,);(,);(,);\ X 1025 (,);(,);(,);\ X 1026 (,);(,);(,);\ X 1027 (,);(,);(,);\ X 1028 (,);(,);(,);\ X 1029 (,);(,);(,);\ X 1030 (,);(,);\ X 1031 (,);(,);(,);\ X 1032 (,);(,);(,);\ X 1033 (,);(,);(,);\ X 1034 (,);(,);(,);\ X 1035 (,);(,);(,);\ X 1036 (,);(,);(,);\ X 1037 (,);(,);(,);\ X 1038 (,);(,);(,);\ X 1039 (,);(,);(,);\ X 1040 (,);(,);(,);\ X 1041 (,);(,);(,);\ X 1042 (,);(,);(,);\ X 1043 (,);(,);(,);\ X 1044 (,);(,);(,);\ X 1045 (,);(,);(,);\ X 1046 (,);(,);(,);\ X 1047 (,);(,);(,);\ X 1048 (,);(,);(,);\ X 1049 (,);(,);(,) X X X 26 Japanese Locale (ISO 9899 and POSIX.2) X X X X X X X X X Draft Japanese National Profile for POSIX Version 1.1 X X X X 1050 END LC_CTYPE X //GO.SYSIN DD part1

;;;;;;;;;;;\ X 366 ;...;;\ X 367 ;...;;\ X 368 ;...; X 369 X 370 # X 371 # Lower class: X 372 # Alphabets in portable character set, X 373 # Roman letters in JIS X0208, X 374 # Greek letters in JIS X0208 and X 375 # Russian letters in JIS X0208. X 376 X 377 lower ;;;;;;;;;;;;;\ X 378 ;;