home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / faqs / comp / answers / internationalization / programming-faq < prev   
Mailbox/MIME Entity  |  1997-10-19  |  32.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ISO-8859 text default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 73 65 | 6e 61 74 6f 72 2d 62 65 |Path: se|nator-be|
|00000010| 64 66 65 6c 6c 6f 77 2e | 6d 69 74 2e 65 64 75 21 |dfellow.|mit.edu!|
|00000020| 66 61 71 73 65 72 76 0a | 46 72 6f 6d 3a 20 6d 69 |faqserv.|From: mi|
|00000030| 6b 65 40 76 6c 73 69 76 | 69 65 2e 74 75 77 69 65 |ke@vlsiv|ie.tuwie|
|00000040| 6e 2e 61 63 2e 61 74 0a | 4e 65 77 73 67 72 6f 75 |n.ac.at.|Newsgrou|
|00000050| 70 73 3a 20 63 6f 6d 70 | 2e 75 6e 69 78 2e 71 75 |ps: comp|.unix.qu|
|00000060| 65 73 74 69 6f 6e 73 2c | 63 6f 6d 70 2e 73 74 64 |estions,|comp.std|
|00000070| 2e 69 6e 74 65 72 6e 61 | 74 2c 63 6f 6d 70 2e 73 |.interna|t,comp.s|
|00000080| 6f 66 74 77 61 72 65 2e | 69 6e 74 65 72 6e 61 74 |oftware.|internat|
|00000090| 69 6f 6e 61 6c 2c 63 6f | 6d 70 2e 6c 61 6e 67 2e |ional,co|mp.lang.|
|000000a0| 63 2c 63 6f 6d 70 2e 77 | 69 6e 64 6f 77 73 2e 78 |c,comp.w|indows.x|
|000000b0| 2c 63 6f 6d 70 2e 73 74 | 64 2e 63 2c 63 6f 6d 70 |,comp.st|d.c,comp|
|000000c0| 2e 61 6e 73 77 65 72 73 | 2c 6e 65 77 73 2e 61 6e |.answers|,news.an|
|000000d0| 73 77 65 72 73 0a 53 75 | 62 6a 65 63 74 3a 20 50 |swers.Su|bject: P|
|000000e0| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 66 6f 72 20 49 |rogrammi|ng for I|
|000000f0| 6e 74 65 72 6e 61 74 69 | 6f 6e 61 6c 69 7a 61 74 |nternati|onalizat|
|00000100| 69 6f 6e 20 46 41 51 0a | 53 75 70 65 72 73 65 64 |ion FAQ.|Supersed|
|00000110| 65 73 3a 20 3c 69 6e 74 | 65 72 6e 61 74 69 6f 6e |es: <int|ernation|
|00000120| 61 6c 69 7a 61 74 69 6f | 6e 2f 70 72 6f 67 72 61 |alizatio|n/progra|
|00000130| 6d 6d 69 6e 67 2d 66 61 | 71 5f 38 37 34 35 37 32 |mming-fa|q_874572|
|00000140| 33 31 35 40 72 74 66 6d | 2e 6d 69 74 2e 65 64 75 |315@rtfm|.mit.edu|
|00000150| 3e 0a 46 6f 6c 6c 6f 77 | 75 70 2d 54 6f 3a 20 63 |>.Follow|up-To: c|
|00000160| 6f 6d 70 2e 75 6e 69 78 | 2e 71 75 65 73 74 69 6f |omp.unix|.questio|
|00000170| 6e 73 2c 63 6f 6d 70 2e | 73 74 64 2e 69 6e 74 65 |ns,comp.|std.inte|
|00000180| 72 6e 61 74 2c 63 6f 6d | 70 2e 73 6f 66 74 77 61 |rnat,com|p.softwa|
|00000190| 72 65 2e 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |re.inter|national|
|000001a0| 2c 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2c 63 6f 6d |,comp.la|ng.c,com|
|000001b0| 70 2e 77 69 6e 64 6f 77 | 73 2e 78 2c 63 6f 6d 70 |p.window|s.x,comp|
|000001c0| 2e 73 74 64 2e 63 0a 44 | 61 74 65 3a 20 31 38 20 |.std.c.D|ate: 18 |
|000001d0| 4f 63 74 20 31 39 39 37 | 20 31 30 3a 31 32 3a 31 |Oct 1997| 10:12:1|
|000001e0| 36 20 47 4d 54 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |6 GMT.Or|ganizati|
|000001f0| 6f 6e 3a 20 54 55 20 57 | 69 65 6e 0a 4c 69 6e 65 |on: TU W|ien.Line|
|00000200| 73 3a 20 37 36 32 0a 41 | 70 70 72 6f 76 65 64 3a |s: 762.A|pproved:|
|00000210| 20 6e 65 77 73 2d 61 6e | 73 77 65 72 73 2d 72 65 | news-an|swers-re|
|00000220| 71 75 65 73 74 40 4d 49 | 54 2e 45 44 55 0a 45 78 |quest@MI|T.EDU.Ex|
|00000230| 70 69 72 65 73 3a 20 31 | 20 44 65 63 20 31 39 39 |pires: 1| Dec 199|
|00000240| 37 20 31 30 3a 30 36 3a | 35 38 20 47 4d 54 0a 4d |7 10:06:|58 GMT.M|
|00000250| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 69 6e 74 65 |essage-I|D: <inte|
|00000260| 72 6e 61 74 69 6f 6e 61 | 6c 69 7a 61 74 69 6f 6e |rnationa|lization|
|00000270| 2f 70 72 6f 67 72 61 6d | 6d 69 6e 67 2d 66 61 71 |/program|ming-faq|
|00000280| 5f 38 37 37 31 36 39 32 | 31 38 40 72 74 66 6d 2e |_8771692|18@rtfm.|
|00000290| 6d 69 74 2e 65 64 75 3e | 0a 4e 4e 54 50 2d 50 6f |mit.edu>|.NNTP-Po|
|000002a0| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 70 65 6e 67 |sting-Ho|st: peng|
|000002b0| 75 69 6e 2d 6c 75 73 74 | 2e 6d 69 74 2e 65 64 75 |uin-lust|.mit.edu|
|000002c0| 0a 4d 69 6d 65 2d 56 65 | 72 73 69 6f 6e 3a 20 31 |.Mime-Ve|rsion: 1|
|000002d0| 2e 30 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |.0.Conte|nt-Type:|
|000002e0| 20 74 65 78 74 2f 70 6c | 61 69 6e 3b 20 63 68 61 | text/pl|ain; cha|
|000002f0| 72 73 65 74 3d 49 53 4f | 2d 38 38 35 39 2d 31 0a |rset=ISO|-8859-1.|
|00000300| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|00000310| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 38 62 69 74 0a |-Encodin|g: 8bit.|
|00000320| 53 75 6d 6d 61 72 79 3a | 20 54 68 69 73 20 46 41 |Summary:| This FA|
|00000330| 51 20 64 69 73 63 75 73 | 73 65 73 20 77 72 69 74 |Q discus|ses writ|
|00000340| 69 6e 67 20 70 72 6f 67 | 72 61 6d 73 20 77 68 69 |ing prog|rams whi|
|00000350| 63 68 20 63 61 6e 20 68 | 61 6e 64 6c 65 0a 20 20 |ch can h|andle. |
|00000360| 20 20 20 20 20 20 20 64 | 69 66 66 65 72 65 6e 74 | d|ifferent|
|00000370| 20 6c 61 6e 67 75 61 67 | 65 20 63 6f 6e 76 65 6e | languag|e conven|
|00000380| 74 69 6f 6e 73 2f 63 68 | 61 72 61 63 74 65 72 20 |tions/ch|aracter |
|00000390| 73 65 74 73 2f 65 74 63 | 2e 0a 20 20 20 20 20 20 |sets/etc|.. |
|000003a0| 20 20 20 41 70 70 6c 69 | 63 61 62 6c 65 20 74 6f | Appli|cable to|
|000003b0| 20 61 6c 6c 20 63 68 61 | 72 61 63 74 65 72 20 73 | all cha|racter s|
|000003c0| 65 74 20 65 6e 63 6f 64 | 69 6e 67 73 3b 20 77 69 |et encod|ings; wi|
|000003d0| 74 68 20 70 61 72 74 69 | 63 75 6c 61 72 20 0a 09 |th parti|cular ..|
|000003e0| 20 65 6d 70 68 61 73 69 | 73 20 6f 6e 20 49 53 4f | emphasi|s on ISO|
|000003f0| 2d 38 38 35 39 2d 31 2e | 0a 58 2d 4c 61 73 74 2d |-8859-1.|.X-Last-|
|00000400| 55 70 64 61 74 65 64 3a | 20 31 39 39 36 2f 30 35 |Updated:| 1996/05|
|00000410| 2f 33 31 0a 4f 72 69 67 | 69 6e 61 74 6f 72 3a 20 |/31.Orig|inator: |
|00000420| 66 61 71 73 65 72 76 40 | 70 65 6e 67 75 69 6e 2d |faqserv@|penguin-|
|00000430| 6c 75 73 74 2e 4d 49 54 | 2e 45 44 55 0a 58 72 65 |lust.MIT|.EDU.Xre|
|00000440| 66 3a 20 73 65 6e 61 74 | 6f 72 2d 62 65 64 66 65 |f: senat|or-bedfe|
|00000450| 6c 6c 6f 77 2e 6d 69 74 | 2e 65 64 75 20 63 6f 6d |llow.mit|.edu com|
|00000460| 70 2e 75 6e 69 78 2e 71 | 75 65 73 74 69 6f 6e 73 |p.unix.q|uestions|
|00000470| 3a 31 33 34 34 38 31 20 | 63 6f 6d 70 2e 73 74 64 |:134481 |comp.std|
|00000480| 2e 69 6e 74 65 72 6e 61 | 74 3a 37 35 35 35 20 63 |.interna|t:7555 c|
|00000490| 6f 6d 70 2e 73 6f 66 74 | 77 61 72 65 2e 69 6e 74 |omp.soft|ware.int|
|000004a0| 65 72 6e 61 74 69 6f 6e | 61 6c 3a 36 34 33 35 20 |ernation|al:6435 |
|000004b0| 63 6f 6d 70 2e 6c 61 6e | 67 2e 63 3a 32 37 34 31 |comp.lan|g.c:2741|
|000004c0| 32 33 20 63 6f 6d 70 2e | 77 69 6e 64 6f 77 73 2e |23 comp.|windows.|
|000004d0| 78 3a 31 31 39 33 30 30 | 20 63 6f 6d 70 2e 73 74 |x:119300| comp.st|
|000004e0| 64 2e 63 3a 32 36 35 33 | 34 20 63 6f 6d 70 2e 61 |d.c:2653|4 comp.a|
|000004f0| 6e 73 77 65 72 73 3a 32 | 38 35 36 39 20 6e 65 77 |nswers:2|8569 new|
|00000500| 73 2e 61 6e 73 77 65 72 | 73 3a 31 31 34 37 39 37 |s.answer|s:114797|
|00000510| 0a 0a 41 72 63 68 69 76 | 65 2d 6e 61 6d 65 3a 20 |..Archiv|e-name: |
|00000520| 69 6e 74 65 72 6e 61 74 | 69 6f 6e 61 6c 69 7a 61 |internat|ionaliza|
|00000530| 74 69 6f 6e 2f 70 72 6f | 67 72 61 6d 6d 69 6e 67 |tion/pro|gramming|
|00000540| 2d 66 61 71 0a 50 6f 73 | 74 69 6e 67 2d 46 72 65 |-faq.Pos|ting-Fre|
|00000550| 71 75 65 6e 63 79 3a 20 | 6d 6f 6e 74 68 6c 79 0a |quency: |monthly.|
|00000560| 56 65 72 73 69 6f 6e 3a | 20 31 2e 39 33 0a 0a 09 |Version:| 1.93...|
|00000570| 09 20 20 50 72 6f 67 72 | 61 6d 6d 69 6e 67 20 66 |. Progr|amming f|
|00000580| 6f 72 20 49 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |or Inter|national|
|00000590| 69 7a 61 74 69 6f 6e 0a | 0a 09 09 09 20 20 4d 69 |ization.|.... Mi|
|000005a0| 63 68 61 65 6c 20 4b 2e | 20 47 73 63 68 77 69 6e |chael K.| Gschwin|
|000005b0| 64 0a 0a 0a 0a 44 49 53 | 43 4c 41 49 4d 45 52 3a |d....DIS|CLAIMER:|
|000005c0| 20 54 48 45 20 41 55 54 | 48 4f 52 20 4d 41 4b 45 | THE AUT|HOR MAKE|
|000005d0| 53 20 4e 4f 20 57 41 52 | 52 41 4e 54 59 20 4f 46 |S NO WAR|RANTY OF|
|000005e0| 20 41 4e 59 20 4b 49 4e | 44 20 57 49 54 48 20 52 | ANY KIN|D WITH R|
|000005f0| 45 47 41 52 44 20 54 4f | 0a 54 48 49 53 20 4d 41 |EGARD TO|.THIS MA|
|00000600| 54 45 52 49 41 4c 2c 20 | 49 4e 43 4c 55 44 49 4e |TERIAL, |INCLUDIN|
|00000610| 47 2c 20 42 55 54 20 4e | 4f 54 20 4c 49 4d 49 54 |G, BUT N|OT LIMIT|
|00000620| 45 44 20 54 4f 2c 20 54 | 48 45 20 49 4d 50 4c 49 |ED TO, T|HE IMPLI|
|00000630| 45 44 20 57 41 52 52 41 | 4e 54 49 45 53 0a 4f 46 |ED WARRA|NTIES.OF|
|00000640| 20 4d 45 52 43 48 41 4e | 54 41 42 49 4c 49 54 59 | MERCHAN|TABILITY|
|00000650| 20 41 4e 44 20 46 49 54 | 4e 45 53 53 20 46 4f 52 | AND FIT|NESS FOR|
|00000660| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|00000670| 52 50 4f 53 45 2e 0a 0a | 4e 6f 74 65 3a 20 4d 6f |RPOSE...|Note: Mo|
|00000680| 73 74 20 6f 66 20 74 68 | 69 73 20 77 61 73 20 74 |st of th|is was t|
|00000690| 65 73 74 65 64 20 6f 6e | 20 61 20 53 75 6e 20 31 |ested on| a Sun 1|
|000006a0| 30 2c 20 72 75 6e 6e 69 | 6e 67 20 53 75 6e 4f 53 |0, runni|ng SunOS|
|000006b0| 20 34 2e 31 2e 2a 20 2d | 20 6f 74 68 65 72 0a 73 | 4.1.* -| other.s|
|000006c0| 79 73 74 65 6d 73 20 6d | 69 67 68 74 20 64 69 66 |ystems m|ight dif|
|000006d0| 66 65 72 20 73 6c 69 67 | 68 74 6c 79 0a 0a 54 68 |fer slig|htly..Th|
|000006e0| 69 73 20 46 41 51 20 64 | 69 73 63 75 73 73 65 73 |is FAQ d|iscusses|
|000006f0| 20 74 6f 70 69 63 73 20 | 72 65 6c 61 74 65 64 20 | topics |related |
|00000700| 74 6f 20 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |to inter|national|
|00000710| 69 7a 61 74 69 6f 6e 2e | 20 53 69 6d 70 6c 65 20 |ization.| Simple |
|00000720| 69 31 38 6e 0a 73 75 70 | 70 6f 72 74 20 66 6f 72 |i18n.sup|port for|
|00000730| 20 45 75 72 6f 70 65 2c | 20 4c 61 74 69 6e 20 41 | Europe,| Latin A|
|00000740| 6d 65 72 69 63 61 2c 20 | 61 6e 64 20 74 68 65 20 |merica, |and the |
|00000750| 4d 69 64 64 6c 65 20 45 | 61 73 74 20 6d 69 67 68 |Middle E|ast migh|
|00000760| 74 20 75 73 65 20 6f 66 | 0a 74 68 65 20 49 53 4f |t use of|.the ISO|
|00000770| 20 38 38 35 39 2d 58 20 | 62 61 73 65 64 20 38 20 | 8859-X |based 8 |
|00000780| 62 69 74 20 63 68 61 72 | 61 63 74 65 72 20 73 65 |bit char|acter se|
|00000790| 74 73 2e 20 20 46 6f 72 | 20 77 69 64 65 72 20 70 |ts. For| wider p|
|000007a0| 6f 72 74 61 62 69 6c 69 | 74 79 2c 20 61 0a 73 74 |ortabili|ty, a.st|
|000007b0| 61 6e 64 61 72 64 20 73 | 75 63 68 20 61 73 20 55 |andard s|uch as U|
|000007c0| 6e 69 63 6f 64 65 20 69 | 73 20 69 6e 20 6f 72 64 |nicode i|s in ord|
|000007d0| 65 72 2e 0a 0a 54 68 69 | 73 20 46 41 51 20 64 69 |er...Thi|s FAQ di|
|000007e0| 73 63 75 73 73 65 73 20 | 68 6f 77 20 74 6f 20 70 |scusses |how to p|
|000007f0| 72 6f 67 72 61 6d 20 61 | 70 70 6c 69 63 61 74 69 |rogram a|pplicati|
|00000800| 6f 6e 73 20 77 68 69 63 | 68 20 73 75 70 70 6f 72 |ons whic|h suppor|
|00000810| 74 20 74 68 65 20 75 73 | 65 0a 45 75 72 6f 70 65 |t the us|e.Europe|
|00000820| 61 6e 20 28 4c 61 74 69 | 6e 20 41 6d 65 72 69 63 |an (Lati|n Americ|
|00000830| 61 6e 29 20 6e 61 74 69 | 6f 6e 61 6c 20 63 68 61 |an) nati|onal cha|
|00000840| 72 61 63 74 65 72 20 73 | 65 74 73 20 6f 6e 20 55 |racter s|ets on U|
|00000850| 4e 49 58 2d 62 61 73 65 | 64 0a 73 79 73 74 65 6d |NIX-base|d.system|
|00000860| 73 20 61 6e 64 20 73 74 | 61 6e 64 61 72 64 20 43 |s and st|andard C|
|00000870| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 73 2c 20 61 | environ|ments, a|
|00000880| 6e 64 20 64 69 73 63 75 | 73 73 65 73 20 73 6f 6d |nd discu|sses som|
|00000890| 65 20 63 68 6f 69 63 65 | 73 20 77 69 74 68 0a 72 |e choice|s with.r|
|000008a0| 65 73 70 65 63 74 20 74 | 6f 20 63 68 61 72 61 63 |espect t|o charac|
|000008b0| 74 65 72 20 73 65 74 73 | 2e 0a 0a 0a 49 4e 54 52 |ter sets|....INTR|
|000008c0| 4f 44 55 43 54 49 4f 4e | 20 0a 0a 4d 6f 73 74 20 |ODUCTION| ..Most |
|000008d0| 6f 66 20 74 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |of the i|nformati|
|000008e0| 6f 6e 20 67 69 76 65 6e | 20 68 65 72 65 20 69 73 |on given| here is|
|000008f0| 20 69 6e 64 65 70 65 6e | 64 65 6e 74 20 6f 66 20 | indepen|dent of |
|00000900| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 0a 65 6e |the char|acter.en|
|00000910| 63 6f 64 69 6e 67 20 75 | 73 65 64 20 28 65 2e 67 |coding u|sed (e.g|
|00000920| 2e 20 44 45 43 20 4d 43 | 53 2c 20 49 53 4f 20 4c |. DEC MC|S, ISO L|
|00000930| 61 74 69 6e 2d 58 2c 20 | 65 74 63 2e 29 2c 20 62 |atin-X, |etc.), b|
|00000940| 75 74 20 63 61 6e 20 62 | 65 20 61 70 70 6c 69 65 |ut can b|e applie|
|00000950| 64 20 74 6f 0a 61 6e 79 | 20 63 68 61 72 61 63 74 |d to.any| charact|
|00000960| 65 72 20 73 65 74 2c 20 | 70 72 6f 76 69 64 69 6e |er set, |providin|
|00000970| 67 20 74 68 65 20 70 72 | 6f 67 72 61 6d 6d 69 6e |g the pr|ogrammin|
|00000980| 67 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 68 61 |g enviro|nment ha|
|00000990| 73 0a 70 72 6f 76 69 73 | 69 6f 6e 73 20 66 6f 72 |s.provis|ions for|
|000009a0| 20 74 68 69 73 20 73 74 | 61 6e 64 61 72 64 2e 0a | this st|andard..|
|000009b0| 0a 0a 31 2e 20 57 68 69 | 63 68 20 63 6f 64 69 6e |..1. Whi|ch codin|
|000009c0| 67 20 73 68 6f 75 6c 64 | 20 49 20 75 73 65 20 66 |g should| I use f|
|000009d0| 6f 72 20 61 63 63 65 6e | 74 65 64 20 63 68 61 72 |or accen|ted char|
|000009e0| 61 63 74 65 72 73 3f 0a | 55 73 65 20 74 68 65 20 |acters?.|Use the |
|000009f0| 69 6e 74 65 72 6e 61 74 | 69 6f 6e 61 6c 6c 79 20 |internat|ionally |
|00000a00| 73 74 61 6e 64 61 72 64 | 69 7a 65 64 20 49 53 4f |standard|ized ISO|
|00000a10| 2d 38 38 35 39 2d 31 20 | 63 68 61 72 61 63 74 65 |-8859-1 |characte|
|00000a20| 72 20 73 65 74 20 74 6f | 20 74 79 70 65 0a 61 63 |r set to| type.ac|
|00000a30| 63 65 6e 74 65 64 20 63 | 68 61 72 61 63 74 65 72 |cented c|haracter|
|00000a40| 73 2e 20 54 68 69 73 20 | 63 68 61 72 61 63 74 65 |s. This |characte|
|00000a50| 72 20 73 65 74 20 63 6f | 6e 74 61 69 6e 73 20 61 |r set co|ntains a|
|00000a60| 6c 6c 20 63 68 61 72 61 | 63 74 65 72 73 0a 6e 65 |ll chara|cters.ne|
|00000a70| 63 65 73 73 61 72 79 20 | 74 6f 20 74 79 70 65 20 |cessary |to type |
|00000a80| 28 57 65 73 74 29 20 45 | 75 72 6f 70 65 61 6e 20 |(West) E|uropean |
|00000a90| 6c 61 6e 67 75 61 67 65 | 73 2e 20 54 68 69 73 20 |language|s. This |
|00000aa0| 65 6e 63 6f 64 69 6e 67 | 20 69 73 20 61 6c 73 6f |encoding| is also|
|00000ab0| 20 74 68 65 0a 70 72 65 | 66 65 72 72 65 64 20 65 | the.pre|ferred e|
|00000ac0| 6e 63 6f 64 69 6e 67 20 | 6f 6e 20 74 68 65 20 49 |ncoding |on the I|
|00000ad0| 6e 74 65 72 6e 65 74 2e | 20 20 49 53 4f 20 38 38 |nternet.| ISO 88|
|00000ae0| 35 39 2d 58 20 63 68 61 | 72 61 63 74 65 72 20 73 |59-X cha|racter s|
|00000af0| 65 74 73 20 75 73 65 20 | 74 68 65 0a 63 68 61 72 |ets use |the.char|
|00000b00| 61 63 74 65 72 73 20 30 | 78 61 30 20 74 68 72 6f |acters 0|xa0 thro|
|00000b10| 75 67 68 20 30 78 66 66 | 20 74 6f 20 72 65 70 72 |ugh 0xff| to repr|
|00000b20| 65 73 65 6e 74 20 6e 61 | 74 69 6f 6e 61 6c 20 63 |esent na|tional c|
|00000b30| 68 61 72 61 63 74 65 72 | 73 2c 20 77 68 69 6c 65 |haracter|s, while|
|00000b40| 0a 74 68 65 20 63 68 61 | 72 61 63 74 65 72 73 20 |.the cha|racters |
|00000b50| 69 6e 20 74 68 65 20 30 | 78 32 30 2d 30 78 37 66 |in the 0|x20-0x7f|
|00000b60| 20 72 61 6e 67 65 20 61 | 72 65 20 74 68 6f 73 65 | range a|re those|
|00000b70| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 55 53 2d | used in| the US-|
|00000b80| 41 53 43 49 49 0a 28 49 | 53 4f 20 36 34 36 29 20 |ASCII.(I|SO 646) |
|00000b90| 63 68 61 72 61 63 74 65 | 72 20 73 65 74 2e 20 20 |characte|r set. |
|00000ba0| 54 68 75 73 2c 20 41 53 | 43 49 49 20 74 65 78 74 |Thus, AS|CII text|
|00000bb0| 20 69 73 20 61 20 70 72 | 6f 70 65 72 20 73 75 62 | is a pr|oper sub|
|00000bc0| 73 65 74 20 6f 66 20 61 | 6c 6c 0a 49 53 4f 20 38 |set of a|ll.ISO 8|
|00000bd0| 38 35 39 2d 58 20 63 68 | 61 72 61 63 74 65 72 20 |859-X ch|aracter |
|00000be0| 73 65 74 73 2e 20 20 0a | 0a 54 68 65 20 63 68 61 |sets. .|.The cha|
|00000bf0| 72 61 63 74 65 72 73 20 | 30 78 38 30 20 74 68 72 |racters |0x80 thr|
|00000c00| 6f 75 67 68 20 30 78 39 | 66 20 61 72 65 20 65 61 |ough 0x9|f are ea|
|00000c10| 72 6d 61 72 6b 65 64 20 | 61 73 20 65 78 74 65 6e |rmarked |as exten|
|00000c20| 64 65 64 20 63 6f 6e 74 | 72 6f 6c 0a 63 68 72 61 |ded cont|rol.chra|
|00000c30| 63 74 65 72 73 2c 20 61 | 6e 64 20 61 72 65 20 6e |cters, a|nd are n|
|00000c40| 6f 74 20 75 73 65 64 20 | 66 6f 72 20 65 6e 63 6f |ot used |for enco|
|00000c50| 64 69 6e 67 20 63 68 61 | 72 61 63 74 65 72 73 2e |ding cha|racters.|
|00000c60| 20 20 54 68 65 73 65 20 | 63 68 61 72 61 63 74 65 | These |characte|
|00000c70| 72 73 0a 61 72 65 20 6e | 6f 74 20 63 75 72 72 65 |rs.are n|ot curre|
|00000c80| 6e 74 6c 79 20 75 73 65 | 64 20 74 6f 20 73 70 65 |ntly use|d to spe|
|00000c90| 63 69 66 79 20 61 6e 79 | 74 68 69 6e 67 2e 20 20 |cify any|thing. |
|00000ca0| 41 20 70 72 61 63 74 69 | 63 61 6c 20 72 65 61 73 |A practi|cal reas|
|00000cb0| 6f 6e 20 66 6f 72 0a 74 | 68 69 73 20 69 73 20 69 |on for.t|his is i|
|00000cc0| 6e 74 65 72 6f 70 65 72 | 61 62 69 6c 69 74 79 20 |nteroper|ability |
|00000cd0| 77 69 74 68 20 37 20 62 | 69 74 20 64 65 76 69 63 |with 7 b|it devic|
|00000ce0| 65 73 20 28 6f 72 20 77 | 68 65 6e 20 74 68 65 20 |es (or w|hen the |
|00000cf0| 38 74 68 20 62 69 74 20 | 67 65 74 73 0a 73 74 72 |8th bit |gets.str|
|00000d00| 69 70 70 65 64 20 62 79 | 20 66 61 75 6c 74 79 20 |ipped by| faulty |
|00000d10| 73 6f 66 74 77 61 72 65 | 29 2e 20 20 44 65 76 69 |software|). Devi|
|00000d20| 63 65 73 20 77 6f 75 6c | 64 20 74 68 65 6e 20 69 |ces woul|d then i|
|00000d30| 6e 74 65 72 70 72 65 74 | 20 74 68 65 20 63 68 61 |nterpret| the cha|
|00000d40| 72 61 63 74 65 72 0a 61 | 73 20 73 6f 6d 65 20 63 |racter.a|s some c|
|00000d50| 6f 6e 74 72 6f 6c 20 63 | 68 61 72 61 63 74 65 72 |ontrol c|haracter|
|00000d60| 20 61 6e 64 20 70 75 74 | 20 74 68 65 20 64 65 76 | and put| the dev|
|00000d70| 69 63 65 20 69 6e 20 61 | 6e 20 75 6e 64 65 66 69 |ice in a|n undefi|
|00000d80| 6e 65 64 20 73 74 61 74 | 65 2e 0a 28 57 68 65 6e |ned stat|e..(When|
|00000d90| 20 74 68 65 20 38 74 68 | 20 62 69 74 20 67 65 74 | the 8th| bit get|
|00000da0| 73 20 73 74 72 69 70 70 | 65 64 20 66 72 6f 6d 20 |s stripp|ed from |
|00000db0| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |the char|acters a|
|00000dc0| 74 20 30 78 61 30 20 74 | 6f 20 30 78 66 66 2c 20 |t 0xa0 t|o 0xff, |
|00000dd0| 61 0a 77 72 6f 6e 67 20 | 63 68 61 72 61 63 74 65 |a.wrong |characte|
|00000de0| 72 20 69 73 20 72 65 70 | 72 65 73 65 6e 74 65 64 |r is rep|resented|
|00000df0| 2c 20 62 75 74 20 74 68 | 69 73 20 63 61 6e 6e 6f |, but th|is canno|
|00000e00| 74 20 63 68 61 6e 67 65 | 20 74 68 65 20 73 74 61 |t change| the sta|
|00000e10| 74 65 20 6f 66 20 61 0a | 74 65 72 6d 69 6e 61 6c |te of a.|terminal|
|00000e20| 20 6f 72 20 6f 74 68 65 | 72 20 64 65 76 69 63 65 | or othe|r device|
|00000e30| 2e 29 0a 0a 54 68 69 73 | 20 63 68 61 72 61 63 74 |.)..This| charact|
|00000e40| 65 72 20 73 65 74 20 69 | 73 20 61 6c 73 6f 20 75 |er set i|s also u|
|00000e50| 73 65 64 20 62 79 20 41 | 6d 69 67 61 44 4f 53 2c |sed by A|migaDOS,|
|00000e60| 20 4d 53 2d 57 69 6e 64 | 6f 77 73 2c 20 56 4d 53 | MS-Wind|ows, VMS|
|00000e70| 20 28 44 45 43 20 4d 43 | 53 0a 69 73 20 70 72 61 | (DEC MC|S.is pra|
|00000e80| 63 74 69 63 61 6c 6c 79 | 20 65 71 75 69 76 61 6c |ctically| equival|
|00000e90| 65 6e 74 20 74 6f 20 49 | 53 4f 20 38 38 35 39 2d |ent to I|SO 8859-|
|00000ea0| 31 29 20 61 6e 64 20 28 | 70 72 61 63 74 69 63 61 |1) and (|practica|
|00000eb0| 6c 6c 79 20 61 6c 6c 29 | 20 55 4e 49 58 0a 69 6d |lly all)| UNIX.im|
|00000ec0| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 73 2e 20 20 |plementa|tions. |
|00000ed0| 4d 53 2d 44 4f 53 20 6e | 6f 72 6d 61 6c 6c 79 20 |MS-DOS n|ormally |
|00000ee0| 75 73 65 73 20 61 20 64 | 69 66 66 65 72 65 6e 74 |uses a d|ifferent|
|00000ef0| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 20 61 | charact|er set a|
|00000f00| 6e 64 0a 69 73 20 6e 6f | 74 20 63 6f 6d 70 61 74 |nd.is no|t compat|
|00000f10| 69 62 6c 65 20 77 69 74 | 68 20 74 68 69 73 20 63 |ible wit|h this c|
|00000f20| 68 61 72 61 63 74 65 72 | 20 73 65 74 2e 20 28 49 |haracter| set. (I|
|00000f30| 74 20 63 61 6e 2c 20 68 | 6f 77 65 76 65 72 2c 20 |t can, h|owever, |
|00000f40| 62 65 0a 74 72 61 6e 73 | 6c 61 74 65 64 20 74 6f |be.trans|lated to|
|00000f50| 20 74 68 69 73 20 66 6f | 72 6d 61 74 20 77 69 74 | this fo|rmat wit|
|00000f60| 68 20 76 61 72 69 6f 75 | 73 20 74 6f 6f 6c 73 2e |h variou|s tools.|
|00000f70| 20 53 65 65 20 62 65 6c | 6f 77 2e 29 0a 0a 46 6f | See bel|ow.)..Fo|
|00000f80| 6f 74 6e 6f 74 65 3a 20 | 53 75 70 70 6f 73 65 64 |otnote: |Supposed|
|00000f90| 6c 79 2c 20 49 42 4d 20 | 63 6f 64 65 20 70 61 67 |ly, IBM |code pag|
|00000fa0| 65 20 38 31 39 20 69 73 | 20 66 75 6c 6c 79 20 49 |e 819 is| fully I|
|00000fb0| 53 4f 20 38 38 35 39 2d | 31 20 63 6f 6d 70 6c 69 |SO 8859-|1 compli|
|00000fc0| 61 6e 74 2e 0a 0a 0a 49 | 53 4f 20 38 38 35 39 2d |ant....I|SO 8859-|
|00000fd0| 31 20 73 75 70 70 6f 72 | 74 73 20 74 68 65 20 66 |1 suppor|ts the f|
|00000fe0| 6f 6c 6c 6f 77 69 6e 67 | 20 6c 61 6e 67 75 61 67 |ollowing| languag|
|00000ff0| 65 73 3a 0a 41 66 72 69 | 6b 61 61 6e 73 2c 20 42 |es:.Afri|kaans, B|
|00001000| 61 73 71 75 65 2c 20 43 | 61 74 61 6c 61 6e 2c 20 |asque, C|atalan, |
|00001010| 44 61 6e 69 73 68 2c 20 | 44 75 74 63 68 2c 20 45 |Danish, |Dutch, E|
|00001020| 6e 67 6c 69 73 68 2c 20 | 46 61 65 72 6f 65 73 65 |nglish, |Faeroese|
|00001030| 2c 20 46 69 6e 6e 69 73 | 68 2c 0a 46 72 65 6e 63 |, Finnis|h,.Frenc|
|00001040| 68 2c 20 47 61 6c 69 63 | 69 61 6e 2c 20 47 65 72 |h, Galic|ian, Ger|
|00001050| 6d 61 6e 2c 20 49 63 65 | 6c 61 6e 64 69 63 2c 20 |man, Ice|landic, |
|00001060| 49 72 69 73 68 2c 20 49 | 74 61 6c 69 61 6e 2c 20 |Irish, I|talian, |
|00001070| 4e 6f 72 77 65 67 69 61 | 6e 2c 0a 50 6f 72 74 75 |Norwegia|n,.Portu|
|00001080| 67 75 65 73 65 2c 20 53 | 70 61 6e 69 73 68 20 61 |guese, S|panish a|
|00001090| 6e 64 20 53 77 65 64 69 | 73 68 2e 0a 0a 28 49 74 |nd Swedi|sh...(It|
|000010a0| 20 68 61 73 20 62 65 65 | 6e 20 63 61 6c 6c 65 64 | has bee|n called|
|000010b0| 20 74 6f 20 6d 79 20 61 | 74 74 65 6e 74 69 6f 6e | to my a|ttention|
|000010c0| 20 74 68 61 74 20 41 6c | 62 61 6e 69 61 6e 20 63 | that Al|banian c|
|000010d0| 61 6e 20 62 65 20 77 72 | 69 74 74 65 6e 20 77 69 |an be wr|itten wi|
|000010e0| 74 68 0a 49 53 4f 20 38 | 38 35 39 2d 31 20 61 6c |th.ISO 8|859-1 al|
|000010f0| 73 6f 2e 20 20 48 6f 77 | 65 76 65 72 2c 20 66 72 |so. How|ever, fr|
|00001100| 6f 6d 20 61 20 73 74 61 | 6e 64 61 72 64 73 20 70 |om a sta|ndards p|
|00001110| 6f 69 6e 74 20 6f 66 20 | 76 69 65 77 2c 20 49 53 |oint of |view, IS|
|00001120| 4f 20 38 38 35 39 2d 32 | 0a 69 73 20 74 68 65 20 |O 8859-2|.is the |
|00001130| 61 70 70 72 6f 70 72 69 | 61 74 65 20 63 68 61 72 |appropri|ate char|
|00001140| 61 63 74 65 72 20 73 65 | 74 20 66 6f 72 20 42 61 |acter se|t for Ba|
|00001150| 6c 6b 61 6e 20 63 6f 75 | 6e 74 72 69 65 73 2e 29 |lkan cou|ntries.)|
|00001160| 0a 0a 49 53 4f 20 38 38 | 35 39 2d 31 20 69 73 20 |..ISO 88|59-1 is |
|00001170| 6a 75 73 74 20 6f 6e 65 | 20 70 61 72 74 20 6f 66 |just one| part of|
|00001180| 20 74 68 65 20 49 53 4f | 2d 38 38 35 39 20 73 74 | the ISO|-8859 st|
|00001190| 61 6e 64 61 72 64 2c 20 | 77 68 69 63 68 20 73 70 |andard, |which sp|
|000011a0| 65 63 69 66 69 65 73 0a | 73 65 76 65 72 61 6c 20 |ecifies.|several |
|000011b0| 63 68 61 72 61 63 74 65 | 72 20 73 65 74 73 3a 0a |characte|r sets:.|
|000011c0| 38 38 35 39 2d 31 09 45 | 75 72 6f 70 65 2c 20 4c |8859-1.E|urope, L|
|000011d0| 61 74 69 6e 20 41 6d 65 | 72 69 63 61 0a 38 38 35 |atin Ame|rica.885|
|000011e0| 39 2d 32 20 20 45 61 73 | 74 65 72 6e 20 45 75 72 |9-2 Eas|tern Eur|
|000011f0| 6f 70 65 0a 38 38 35 39 | 2d 33 20 20 53 45 20 45 |ope.8859|-3 SE E|
|00001200| 75 72 6f 70 65 2f 6d 69 | 73 63 65 6c 6c 61 6e 65 |urope/mi|scellane|
|00001210| 6f 75 73 20 28 45 73 70 | 65 72 61 6e 74 6f 2c 20 |ous (Esp|eranto, |
|00001220| 4d 61 6c 74 65 73 65 2c | 20 65 74 63 2e 29 20 0a |Maltese,| etc.) .|
|00001230| 38 38 35 39 2d 34 20 20 | 53 63 61 6e 64 69 6e 61 |8859-4 |Scandina|
|00001240| 76 69 61 2f 42 61 6c 74 | 69 63 20 28 6d 6f 73 74 |via/Balt|ic (most|
|00001250| 6c 79 20 63 6f 76 65 72 | 65 64 20 62 79 20 38 38 |ly cover|ed by 88|
|00001260| 35 39 2d 31 20 61 6c 73 | 6f 29 0a 38 38 35 39 2d |59-1 als|o).8859-|
|00001270| 35 20 20 43 79 72 69 6c | 6c 69 63 0a 38 38 35 39 |5 Cyril|lic.8859|
|00001280| 2d 36 20 20 41 72 61 62 | 69 63 0a 38 38 35 39 2d |-6 Arab|ic.8859-|
|00001290| 37 20 20 47 72 65 65 6b | 20 0a 38 38 35 39 2d 38 |7 Greek| .8859-8|
|000012a0| 20 20 48 65 62 72 65 77 | 0a 38 38 35 39 2d 39 20 | Hebrew|.8859-9 |
|000012b0| 20 4c 61 74 69 6e 35 2c | 20 73 61 6d 65 20 61 73 | Latin5,| same as|
|000012c0| 20 38 38 35 39 2d 31 20 | 65 78 63 65 70 74 20 66 | 8859-1 |except f|
|000012d0| 6f 72 20 54 75 72 6b 69 | 73 68 20 69 6e 73 74 65 |or Turki|sh inste|
|000012e0| 61 64 20 6f 66 20 49 63 | 65 6c 61 6e 64 69 63 0a |ad of Ic|elandic.|
|000012f0| 38 38 35 39 2d 31 30 20 | 4c 61 74 69 6e 36 2c 20 |8859-10 |Latin6, |
|00001300| 66 6f 72 20 4c 61 70 70 | 69 73 68 2f 4e 6f 72 64 |for Lapp|ish/Nord|
|00001310| 69 63 2f 45 73 6b 69 6d | 6f 20 6c 61 6e 67 75 61 |ic/Eskim|o langua|
|00001320| 67 65 73 0a 0a 41 6e 6f | 74 68 65 72 20 6e 61 73 |ges..Ano|ther nas|
|00001330| 63 65 6e 74 20 73 74 61 | 6e 64 61 72 64 20 69 73 |cent sta|ndard is|
|00001340| 20 55 4e 49 43 4f 44 45 | 20 28 49 53 4f 20 31 30 | UNICODE| (ISO 10|
|00001350| 36 34 36 29 2e 20 20 55 | 4e 49 43 4f 44 45 20 69 |646). U|NICODE i|
|00001360| 73 20 61 6e 0a 65 78 74 | 65 6e 73 69 6f 6e 20 6f |s an.ext|ension o|
|00001370| 66 20 49 53 4f 20 38 38 | 35 39 2d 31 20 28 77 68 |f ISO 88|59-1 (wh|
|00001380| 69 63 68 20 69 74 73 65 | 6c 66 20 69 73 20 61 6e |ich itse|lf is an|
|00001390| 20 65 78 74 65 6e 73 69 | 6f 6e 20 6f 66 20 55 53 | extensi|on of US|
|000013a0| 2d 41 53 43 49 49 29 20 | 74 6f 0a 77 69 64 65 20 |-ASCII) |to.wide |
|000013b0| 63 68 61 72 61 63 74 65 | 72 73 2e 20 20 54 68 75 |characte|rs. Thu|
|000013c0| 73 2c 20 6d 6f 73 74 20 | 6f 66 20 74 68 65 20 77 |s, most |of the w|
|000013d0| 6f 72 6c 64 27 73 20 6c | 61 6e 67 75 61 67 65 73 |orld's l|anguages|
|000013e0| 20 28 69 6e 63 6c 75 64 | 69 6e 67 0a 4a 61 70 61 | (includ|ing.Japa|
|000013f0| 6e 65 73 65 2c 20 4b 6f | 72 65 61 6e 2c 20 43 68 |nese, Ko|rean, Ch|
|00001400| 69 6e 65 73 65 2e 2e 2e | 29 20 63 61 6e 20 62 65 |inese...|) can be|
|00001410| 20 63 6f 76 65 72 65 64 | 2e 0a 0a 55 6e 69 63 6f | covered|...Unico|
|00001420| 64 65 20 69 73 20 61 64 | 76 61 6e 74 61 67 65 6f |de is ad|vantageo|
|00001430| 75 73 20 62 65 63 61 75 | 73 65 20 6f 6e 65 20 63 |us becau|se one c|
|00001440| 68 61 72 61 63 74 65 72 | 20 73 65 74 20 73 75 66 |haracter| set suf|
|00001450| 66 69 63 65 73 20 74 6f | 20 65 6e 63 6f 64 65 0a |fices to| encode.|
|00001460| 61 6c 6c 20 74 68 65 20 | 77 6f 72 6c 64 27 73 20 |all the |world's |
|00001470| 6c 61 6e 67 75 61 67 65 | 73 2e 20 20 54 68 65 20 |language|s. The |
|00001480| 64 65 67 72 65 65 20 6f | 66 20 55 6e 69 63 6f 64 |degree o|f Unicod|
|00001490| 65 20 73 75 70 70 6f 72 | 74 20 61 76 61 69 6c 61 |e suppor|t availa|
|000014a0| 62 6c 65 0a 64 65 70 65 | 6e 64 73 20 6f 6e 20 74 |ble.depe|nds on t|
|000014b0| 68 65 20 6f 70 65 72 61 | 74 69 6e 67 20 73 79 73 |he opera|ting sys|
|000014c0| 74 65 6d 20 61 6e 64 20 | 6f 6e 20 61 70 70 6c 69 |tem and |on appli|
|000014d0| 63 61 74 69 6f 6e 20 61 | 76 61 69 6c 61 62 69 6c |cation a|vailabil|
|000014e0| 69 74 79 2e 20 0a 48 6f | 77 65 76 65 72 20 76 65 |ity. .Ho|wever ve|
|000014f0| 72 79 20 66 65 77 20 70 | 72 6f 67 72 61 6d 73 20 |ry few p|rograms |
|00001500| 73 75 70 70 6f 72 74 20 | 77 69 64 65 20 63 68 61 |support |wide cha|
|00001510| 72 61 63 74 65 72 73 2e | 20 54 68 75 73 2c 20 61 |racters.| Thus, a|
|00001520| 20 60 63 68 65 61 70 27 | 0a 75 70 67 72 61 64 65 | `cheap'|.upgrade|
|00001530| 20 66 72 6f 6d 20 37 20 | 62 69 74 20 55 53 2d 41 | from 7 |bit US-A|
|00001540| 53 43 49 49 20 6d 69 67 | 68 74 20 62 65 20 74 6f |SCII mig|ht be to|
|00001550| 20 6f 6e 6c 79 20 38 20 | 62 69 74 20 77 69 64 65 | only 8 |bit wide|
|00001560| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 73 0a | charact|er sets.|
|00001570| 28 73 75 63 68 20 61 73 | 20 74 68 65 20 49 53 4f |(such as| the ISO|
|00001580| 20 38 38 35 39 2d 58 29 | 2e 20 20 55 6e 66 6f 72 | 8859-X)|. Unfor|
|00001590| 74 75 6e 61 74 65 6c 79 | 2c 20 73 6f 6d 65 20 70 |tunately|, some p|
|000015a0| 72 6f 67 72 61 6d 6d 65 | 72 73 20 73 74 69 6c 6c |rogramme|rs still|
|000015b0| 0a 69 6e 73 69 73 74 20 | 6f 6e 20 75 73 69 6e 67 |.insist |on using|
|000015c0| 20 74 68 65 20 60 73 70 | 61 72 65 27 20 65 69 67 | the `sp|are' eig|
|000015d0| 74 68 20 62 69 74 20 66 | 6f 72 20 63 6c 65 76 65 |th bit f|or cleve|
|000015e0| 72 20 74 72 69 63 6b 73 | 2c 20 77 68 69 63 68 20 |r tricks|, which |
|000015f0| 77 69 6c 6c 0a 6d 61 6b | 65 20 63 6f 6e 76 65 72 |will.mak|e conver|
|00001600| 73 69 6f 6e 20 6d 6f 72 | 65 20 64 69 66 66 69 63 |sion mor|e diffic|
|00001610| 75 6c 74 2e 0a 0a 46 6f | 6f 74 6e 6f 74 65 3a 20 |ult...Fo|otnote: |
|00001620| 53 6f 6d 65 20 70 65 6f | 70 6c 65 20 68 61 76 65 |Some peo|ple have|
|00001630| 20 63 6f 6d 70 6c 61 69 | 6e 65 64 20 61 62 6f 75 | complai|ned abou|
|00001640| 74 20 6d 69 73 73 69 6e | 67 20 63 68 61 72 61 63 |t missin|g charac|
|00001650| 74 65 72 73 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |ters,. | |
|00001660| 65 2e 67 2e 20 46 72 65 | 6e 63 68 20 75 73 65 72 |e.g. Fre|nch user|
|00001670| 73 20 61 62 6f 75 74 20 | 61 20 6d 69 73 73 69 6e |s about |a missin|
|00001680| 67 20 27 6f 65 27 2e 20 | 20 4e 6f 74 65 20 74 68 |g 'oe'. | Note th|
|00001690| 61 74 20 6f 65 20 69 73 | 20 0a 20 20 20 20 20 20 |at oe is| . |
|000016a0| 20 20 20 20 6e 6f 74 20 | 61 20 63 68 61 72 61 63 | not |a charac|
|000016b0| 74 65 72 2c 20 62 75 74 | 20 61 20 6c 69 67 61 74 |ter, but| a ligat|
|000016c0| 75 72 65 20 28 61 20 63 | 6f 6d 62 69 6e 61 74 69 |ure (a c|ombinati|
|000016d0| 6f 6e 20 6f 66 20 74 77 | 6f 0a 20 20 20 20 20 20 |on of tw|o. |
|000016e0| 20 20 20 20 63 68 61 72 | 61 63 74 65 72 73 20 66 | char|acters f|
|000016f0| 6f 72 20 74 79 70 6f 67 | 72 61 70 68 69 63 61 6c |or typog|raphical|
|00001700| 20 70 75 72 70 6f 73 65 | 73 29 2e 20 20 4c 69 67 | purpose|s). Lig|
|00001710| 61 74 75 72 65 73 20 61 | 72 65 20 6e 6f 74 20 0a |atures a|re not .|
|00001720| 20 20 20 20 20 20 20 20 | 20 20 70 61 72 74 20 6f | | part o|
|00001730| 66 20 74 68 65 20 49 53 | 4f 20 38 38 35 39 2d 58 |f the IS|O 8859-X|
|00001740| 20 73 74 61 6e 64 61 72 | 64 2e 20 20 28 41 6c 74 | standar|d. (Alt|
|00001750| 68 6f 75 67 68 20 27 6f | 65 27 20 75 73 65 64 20 |hough 'o|e' used |
|00001760| 74 6f 20 0a 20 20 20 20 | 20 20 20 20 20 20 62 65 |to . | be|
|00001770| 20 69 6e 20 74 68 65 20 | 64 72 61 66 74 20 38 38 | in the |draft 88|
|00001780| 35 39 2d 31 20 73 74 61 | 6e 64 61 72 64 20 62 65 |59-1 sta|ndard be|
|00001790| 66 6f 72 65 20 69 74 20 | 77 61 73 20 75 6e 6d 61 |fore it |was unma|
|000017a0| 73 6b 65 64 20 61 73 0a | 20 20 20 20 20 20 20 20 |sked as.| |
|000017b0| 20 20 60 6d 65 72 65 27 | 20 6c 69 67 61 74 75 72 | `mere'| ligatur|
|000017c0| 65 2e 29 0a 0a 0a 0a 0a | 32 2e 20 43 68 6f 6f 73 |e.).....|2. Choos|
|000017d0| 69 6e 67 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |ing the |characte|
|000017e0| 72 20 73 65 74 20 65 6e | 63 6f 64 69 6e 67 0a 0a |r set en|coding..|
|000017f0| 44 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 79 6f 75 |Dependin|g on you|
|00001800| 72 20 6e 65 65 64 73 2c | 20 79 6f 75 20 77 69 6c |r needs,| you wil|
|00001810| 6c 20 70 72 6f 62 61 62 | 6c 79 20 77 61 6e 74 20 |l probab|ly want |
|00001820| 74 6f 20 63 68 6f 6f 73 | 65 20 64 69 66 66 65 72 |to choos|e differ|
|00001830| 65 6e 74 0a 73 6f 6c 75 | 74 69 6f 6e 73 2e 20 20 |ent.solu|tions. |
|00001840| 41 20 71 75 69 63 6b 20 | 73 68 6f 74 20 69 31 38 |A quick |shot i18|
|00001850| 6e 20 6f 66 20 55 53 20 | 70 72 6f 67 72 61 6d 73 |n of US |programs|
|00001860| 20 6d 69 67 68 74 20 73 | 69 6d 70 6c 79 20 62 65 | might s|imply be|
|00001870| 20 67 6f 69 6e 67 20 74 | 6f 0a 38 20 62 69 74 20 | going t|o.8 bit |
|00001880| 61 6e 64 20 75 73 65 20 | 6f 6e 65 20 6f 66 20 74 |and use |one of t|
|00001890| 68 65 20 49 53 4f 20 38 | 38 35 39 2d 58 20 63 68 |he ISO 8|859-X ch|
|000018a0| 61 72 61 63 74 65 72 20 | 73 65 74 73 2e 0a 0a 49 |aracter |sets...I|
|000018b0| 66 20 79 6f 75 20 68 61 | 76 65 20 61 20 63 68 6f |f you ha|ve a cho|
|000018c0| 69 63 65 20 61 6e 64 20 | 73 74 61 72 74 20 66 72 |ice and |start fr|
|000018d0| 6f 6d 20 73 63 72 61 74 | 63 68 2c 20 79 6f 75 20 |om scrat|ch, you |
|000018e0| 6d 69 67 68 74 20 77 61 | 6e 74 20 74 6f 0a 63 6f |might wa|nt to.co|
|000018f0| 6e 73 69 64 65 72 20 55 | 6e 69 63 6f 64 65 2e 20 |nsider U|nicode. |
|00001900| 20 54 68 65 72 65 20 61 | 72 65 20 73 65 76 65 72 | There a|re sever|
|00001910| 61 6c 20 61 73 70 65 63 | 74 73 20 74 6f 20 63 68 |al aspec|ts to ch|
|00001920| 6f 6f 73 69 6e 67 20 61 | 20 70 61 72 74 69 63 75 |oosing a| particu|
|00001930| 6c 61 72 0a 63 68 61 72 | 61 63 74 65 72 20 73 65 |lar.char|acter se|
|00001940| 74 20 28 61 6e 64 20 79 | 6f 75 20 6d 61 79 20 77 |t (and y|ou may w|
|00001950| 61 6e 74 20 74 6f 20 64 | 65 63 69 64 65 20 6f 6e |ant to d|ecide on|
|00001960| 20 64 69 66 66 65 72 65 | 6e 74 20 63 68 61 72 61 | differe|nt chara|
|00001970| 63 74 65 72 20 73 65 74 | 73 0a 66 6f 72 20 64 69 |cter set|s.for di|
|00001980| 66 66 65 72 65 6e 74 20 | 70 75 72 70 6f 73 65 73 |fferent |purposes|
|00001990| 29 3a 0a 31 29 20 77 68 | 61 74 20 63 6f 64 65 73 |):.1) wh|at codes|
|000019a0| 65 74 20 73 68 6f 75 6c | 64 20 74 68 65 20 61 70 |et shoul|d the ap|
|000019b0| 70 6c 69 63 61 74 69 6f | 6e 20 72 75 6e 20 69 6e |plicatio|n run in|
|000019c0| 3f 20 20 0a 32 29 20 77 | 68 61 74 20 63 6f 64 65 |? .2) w|hat code|
|000019d0| 73 65 74 20 73 68 6f 75 | 6c 64 20 66 69 6c 65 73 |set shou|ld files|
|000019e0| 20 62 65 20 73 61 76 65 | 64 20 69 6e 20 0a 33 29 | be save|d in .3)|
|000019f0| 20 77 68 61 74 20 63 6f | 64 65 73 65 74 20 69 73 | what co|deset is|
|00001a00| 20 75 73 65 64 20 61 73 | 20 6f 75 74 70 75 74 20 | used as| output |
|00001a10| 28 74 6f 20 73 63 72 65 | 65 6e 73 20 65 74 63 2e |(to scre|ens etc.|
|00001a20| 29 20 61 6e 64 20 0a 34 | 29 20 73 68 6f 75 6c 64 |) and .4|) should|
|00001a30| 20 77 69 64 65 20 63 68 | 61 72 61 63 74 65 72 73 | wide ch|aracters|
|00001a40| 20 6f 72 20 6d 75 6c 74 | 69 2d 62 79 74 65 20 63 | or mult|i-byte c|
|00001a50| 68 61 72 61 63 74 65 72 | 73 20 62 65 20 75 73 65 |haracter|s be use|
|00001a60| 64 20 28 74 68 69 73 0a | 20 20 20 63 68 6f 69 63 |d (this.| choic|
|00001a70| 65 20 6d 61 79 20 62 65 | 20 64 69 66 66 65 72 65 |e may be| differe|
|00001a80| 6e 74 20 66 6f 72 20 65 | 61 63 68 20 6f 66 20 70 |nt for e|ach of p|
|00001a90| 6f 69 6e 74 73 20 31 2d | 33 29 0a 0a 46 6f 72 20 |oints 1-|3)..For |
|00001aa0| 65 78 61 6d 70 6c 65 2c | 20 69 66 20 70 6f 72 74 |example,| if port|
|00001ab0| 61 62 69 6c 69 74 79 20 | 6f 66 20 79 6f 75 72 20 |ability |of your |
|00001ac0| 66 69 6c 65 73 20 61 63 | 72 6f 73 73 20 63 75 6c |files ac|ross cul|
|00001ad0| 74 75 72 61 6c 20 62 6f | 72 64 65 72 73 20 69 73 |tural bo|rders is|
|00001ae0| 0a 61 6e 20 6f 62 6a 65 | 63 74 69 76 65 2c 20 79 |.an obje|ctive, y|
|00001af0| 6f 75 20 6d 69 67 68 74 | 20 77 61 6e 74 20 74 6f |ou might| want to|
|00001b00| 20 75 73 65 20 73 6f 6d | 65 20 66 6f 72 6d 20 6f | use som|e form o|
|00001b10| 66 20 55 6e 69 63 6f 64 | 65 20 65 6e 63 6f 64 69 |f Unicod|e encodi|
|00001b20| 6e 67 20 74 6f 0a 61 63 | 68 69 65 76 65 20 74 68 |ng to.ac|hieve th|
|00001b30| 69 73 2e 20 20 49 66 20 | 69 6e 74 65 72 61 63 74 |is. If |interact|
|00001b40| 69 6f 6e 20 77 69 74 68 | 20 6f 74 68 65 72 20 74 |ion with| other t|
|00001b50| 6f 6f 6c 73 20 69 6e 20 | 79 6f 75 72 20 65 6e 76 |ools in |your env|
|00001b60| 69 72 6f 6e 6d 65 6e 74 | 20 69 73 0a 74 68 65 20 |ironment| is.the |
|00001b70| 6d 61 69 6e 20 6f 62 6a | 65 63 74 69 76 65 2c 20 |main obj|ective, |
|00001b80| 61 6e 64 20 74 68 65 73 | 65 20 74 6f 6f 6c 73 20 |and thes|e tools |
|00001b90| 75 73 65 20 61 6e 20 65 | 6e 63 6f 64 69 6e 67 20 |use an e|ncoding |
|00001ba0| 64 69 66 66 65 72 65 6e | 74 20 66 72 6f 6d 0a 55 |differen|t from.U|
|00001bb0| 6e 69 63 6f 64 65 2c 20 | 74 68 69 73 20 63 68 61 |nicode, |this cha|
|00001bc0| 72 61 63 74 65 72 20 73 | 65 74 20 6d 69 67 68 74 |racter s|et might|
|00001bd0| 20 62 65 20 75 73 65 64 | 20 69 6e 73 74 65 61 64 | be used| instead|
|00001be0| 2e 20 20 0a 0a 55 73 69 | 6e 67 20 55 6e 69 63 6f |. ..Usi|ng Unico|
|00001bf0| 64 65 20 69 6e 74 65 72 | 6e 61 6c 6c 79 20 62 75 |de inter|nally bu|
|00001c00| 74 20 77 72 69 74 69 6e | 67 20 61 20 64 69 66 66 |t writin|g a diff|
|00001c10| 65 72 65 6e 74 20 66 6f | 72 6d 61 74 20 74 6f 20 |erent fo|rmat to |
|00001c20| 66 69 6c 65 73 20 6d 61 | 79 0a 73 6f 75 6e 64 20 |files ma|y.sound |
|00001c30| 66 75 6e 6e 79 20 28 65 | 73 70 2e 20 69 66 20 74 |funny (e|sp. if t|
|00001c40| 68 65 20 6f 75 74 70 75 | 74 20 66 69 6c 65 20 66 |he outpu|t file f|
|00001c50| 6f 72 6d 61 74 20 69 73 | 20 6f 6e 6c 79 20 61 20 |ormat is| only a |
|00001c60| 73 75 62 73 65 74 20 6f | 66 0a 55 6e 69 63 6f 64 |subset o|f.Unicod|
|00001c70| 65 29 2c 20 62 75 74 20 | 79 6f 75 20 77 6f 75 6c |e), but |you woul|
|00001c80| 64 20 6f 6e 6c 79 20 68 | 61 76 65 20 74 6f 20 61 |d only h|ave to a|
|00001c90| 64 61 70 74 20 74 68 65 | 20 66 69 6c 65 20 77 72 |dapt the| file wr|
|00001ca0| 69 74 65 20 61 6e 64 20 | 72 65 61 64 0a 66 75 6e |ite and |read.fun|
|00001cb0| 63 74 69 6f 6e 73 20 61 | 6e 64 20 74 68 65 20 73 |ctions a|nd the s|
|00001cc0| 61 6d 65 20 70 72 6f 67 | 72 61 6d 20 77 69 6c 6c |ame prog|ram will|
|00001cd0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 65 78 65 63 | be able| to exec|
|00001ce0| 75 74 65 20 69 6e 20 61 | 6c 6c 0a 63 6f 75 6e 74 |ute in a|ll.count|
|00001cf0| 72 69 65 73 20 79 6f 75 | 72 20 70 72 6f 64 75 63 |ries you|r produc|
|00001d00| 74 20 6d 69 67 68 74 20 | 62 65 20 75 73 65 64 2e |t might |be used.|
|00001d10| 2e 2e 29 0a 0a 41 6c 73 | 6f 2c 20 74 65 72 6d 69 |..)..Als|o, termi|
|00001d20| 6e 61 6c 73 20 61 6e 64 | 2f 6f 72 20 77 68 69 63 |nals and|/or whic|
|00001d30| 68 20 70 72 6f 63 65 73 | 73 20 55 6e 69 63 6f 64 |h proces|s Unicod|
|00001d40| 65 20 6d 61 79 20 6e 6f | 74 20 62 65 20 61 76 61 |e may no|t be ava|
|00001d50| 69 6c 61 62 6c 65 20 28 | 6f 72 0a 79 6f 75 20 6d |ilable (|or.you m|
|00001d60| 69 67 68 74 20 68 61 76 | 65 20 74 6f 20 73 75 70 |ight hav|e to sup|
|00001d70| 70 6f 72 74 20 6c 65 67 | 61 63 79 20 68 61 72 64 |port leg|acy hard|
|00001d80| 77 61 72 65 29 2c 20 73 | 6f 20 79 6f 75 20 6d 69 |ware), s|o you mi|
|00001d90| 67 68 74 20 6e 65 65 64 | 20 74 6f 20 61 64 61 70 |ght need| to adap|
|00001da0| 74 0a 74 68 65 20 6f 75 | 74 70 75 74 20 66 6f 72 |t.the ou|tput for|
|00001db0| 6d 61 74 20 74 6f 20 61 | 20 74 68 69 72 64 20 73 |mat to a| third s|
|00001dc0| 74 61 6e 64 61 72 64 2e | 0a 0a 0a 32 2e 20 47 65 |tandard.|...2. Ge|
|00001dd0| 74 74 69 6e 67 20 79 6f | 75 72 20 65 6e 76 69 72 |tting yo|ur envir|
|00001de0| 6f 6e 6d 65 6e 74 20 72 | 69 67 68 74 20 66 6f 72 |onment r|ight for|
|00001df0| 20 49 53 4f 20 38 38 35 | 39 2d 58 0a 54 6f 20 63 | ISO 885|9-X.To c|
|00001e00| 6f 6e 66 69 67 75 72 65 | 20 79 6f 75 72 20 65 6e |onfigure| your en|
|00001e10| 76 69 72 6f 6e 6d 65 6e | 74 20 73 75 63 68 20 74 |vironmen|t such t|
|00001e20| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 65 6e 74 65 |hat you |can ente|
|00001e30| 72 2c 20 70 72 6f 63 65 | 73 73 20 61 6e 64 0a 64 |r, proce|ss and.d|
|00001e40| 69 73 70 6c 61 79 20 38 | 20 62 69 74 20 49 53 4f |isplay 8| bit ISO|
|00001e50| 20 63 68 61 72 61 63 74 | 65 72 73 2c 20 63 68 65 | charact|ers, che|
|00001e60| 63 6b 20 6f 75 74 20 74 | 68 65 20 49 53 4f 2d 38 |ck out t|he ISO-8|
|00001e70| 38 35 39 2d 31 20 46 41 | 51 20 61 76 61 69 6c 61 |859-1 FA|Q availa|
|00001e80| 62 6c 65 0a 76 69 61 20 | 61 6e 6f 6e 79 6d 6f 75 |ble.via |anonymou|
|00001e90| 73 20 66 74 70 20 66 72 | 6f 6d 20 66 74 70 2e 76 |s ftp fr|om ftp.v|
|00001ea0| 6c 73 69 76 69 65 2e 74 | 75 77 69 65 6e 2e 61 63 |lsivie.t|uwien.ac|
|00001eb0| 2e 61 74 20 69 6e 0a 2f | 70 75 62 2f 38 62 69 74 |.at in./|pub/8bit|
|00001ec0| 2f 46 41 51 2d 49 53 4f | 2d 38 38 35 39 2d 31 2e |/FAQ-ISO|-8859-1.|
|00001ed0| 20 20 0a 0a 49 66 20 79 | 6f 75 20 75 73 65 20 61 | ..If y|ou use a|
|00001ee0| 20 64 69 66 66 65 72 65 | 6e 74 20 65 6e 63 6f 64 | differe|nt encod|
|00001ef0| 69 6e 67 2c 20 79 6f 75 | 20 77 69 6c 6c 20 70 72 |ing, you| will pr|
|00001f00| 6f 62 61 62 6c 79 20 61 | 6c 73 6f 20 68 61 76 65 |obably a|lso have|
|00001f10| 20 74 6f 0a 63 6f 6e 66 | 69 67 75 72 65 20 79 6f | to.conf|igure yo|
|00001f20| 75 72 20 73 79 73 74 65 | 6d 20 74 6f 20 66 75 6c |ur syste|m to ful|
|00001f30| 6c 79 20 73 75 70 70 6f | 72 74 20 74 68 61 74 20 |ly suppo|rt that |
|00001f40| 65 6e 63 6f 64 69 6e 67 | 2e 0a 0a 0a 0a 33 2e 20 |encoding|.....3. |
|00001f50| 53 65 74 74 69 6e 67 20 | 79 6f 75 72 20 65 6e 76 |Setting |your env|
|00001f60| 69 72 6f 6e 6d 65 6e 74 | 20 66 6f 72 20 49 53 4f |ironment| for ISO|
|00001f70| 2d 43 20 28 41 4e 53 49 | 2d 43 29 20 70 72 6f 67 |-C (ANSI|-C) prog|
|00001f80| 72 61 6d 73 0a 54 68 65 | 20 49 53 4f 20 43 20 53 |rams.The| ISO C S|
|00001f90| 74 61 6e 64 61 72 64 20 | 28 41 4e 53 49 20 43 20 |tandard |(ANSI C |
|00001fa0| 53 74 61 6e 64 61 72 64 | 20 34 2e 34 29 20 64 65 |Standard| 4.4) de|
|00001fb0| 66 69 6e 65 73 20 73 65 | 76 65 72 61 6c 20 66 75 |fines se|veral fu|
|00001fc0| 6e 63 74 69 6f 6e 73 20 | 66 6f 72 0a 73 75 70 70 |nctions |for.supp|
|00001fd0| 6f 72 74 69 6e 67 20 6c | 6f 63 61 6c 69 7a 61 74 |orting l|ocalizat|
|00001fe0| 69 6f 6e 2e 20 54 6f 20 | 73 65 74 20 79 6f 75 72 |ion. To |set your|
|00001ff0| 20 69 6e 74 65 72 6e 61 | 74 69 6f 6e 61 6c 20 65 | interna|tional e|
|00002000| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 6f 6e 0a 70 72 |nvironme|nt on.pr|
|00002010| 6f 67 72 61 6d 20 73 74 | 61 72 74 75 70 2c 20 79 |ogram st|artup, y|
|00002020| 6f 75 20 73 68 6f 75 6c | 64 20 6d 61 6b 65 20 6f |ou shoul|d make o|
|00002030| 6e 65 20 6f 72 20 73 65 | 76 65 72 61 6c 20 63 61 |ne or se|veral ca|
|00002040| 6c 6c 73 20 74 6f 20 74 | 68 65 20 73 65 74 6c 6f |lls to t|he setlo|
|00002050| 63 61 6c 65 0a 66 75 6e | 63 74 69 6f 6e 73 2e 20 |cale.fun|ctions. |
|00002060| 20 43 61 6c 6c 73 20 74 | 6f 20 74 68 69 73 20 66 | Calls t|o this f|
|00002070| 75 6e 63 74 69 6f 6e 20 | 77 69 6c 6c 20 70 72 65 |unction |will pre|
|00002080| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 72 65 |determin|e the re|
|00002090| 61 63 74 69 6f 6e 20 6f | 66 0a 6f 74 68 65 72 20 |action o|f.other |
|000020a0| 6c 6f 63 61 6c 69 7a 61 | 74 69 6f 6e 20 66 75 6e |localiza|tion fun|
|000020b0| 63 74 69 6f 6e 73 20 61 | 63 63 6f 72 64 69 6e 67 |ctions a|ccording|
|000020c0| 20 74 6f 20 79 6f 75 72 | 20 6c 61 6e 67 75 61 67 | to your| languag|
|000020d0| 65 2f 63 6f 75 6e 74 72 | 79 0a 65 6e 76 69 72 6f |e/countr|y.enviro|
|000020e0| 6e 6d 65 6e 74 2e 0a 0a | 54 6f 20 63 6f 6e 66 69 |nment...|To confi|
|000020f0| 67 75 72 65 20 61 20 70 | 61 72 74 69 63 75 6c 61 |gure a p|articula|
|00002100| 72 20 61 73 70 65 63 74 | 20 6f 66 20 79 6f 75 20 |r aspect| of you |
|00002110| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2c 20 73 61 79 |environm|ent, say|
|00002120| 20 74 68 65 20 6e 75 6d | 62 65 72 0a 72 65 70 72 | the num|ber.repr|
|00002130| 65 73 65 6e 74 61 74 69 | 6f 6e 2c 20 79 6f 75 20 |esentati|on, you |
|00002140| 77 6f 75 6c 64 20 63 61 | 6c 6c 0a 2d 2d 0a 73 65 |would ca|ll.--.se|
|00002150| 74 6c 6f 63 61 6c 65 20 | 28 4c 43 5f 4e 55 4d 45 |tlocale |(LC_NUME|
|00002160| 52 49 43 2c 20 22 47 65 | 72 6d 61 6e 79 22 29 3b |RIC, "Ge|rmany");|
|00002170| 0a 2d 2d 0a 0a 54 68 69 | 73 20 63 61 6c 6c 20 77 |.--..Thi|s call w|
|00002180| 6f 75 6c 64 20 73 65 74 | 20 61 6c 6c 20 6e 75 6d |ould set| all num|
|00002190| 62 65 72 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |ber repr|esentati|
|000021a0| 6f 6e 20 66 75 6e 63 74 | 69 6f 6e 73 20 64 65 66 |on funct|ions def|
|000021b0| 69 6e 65 64 20 69 6e 20 | 74 68 65 0a 6c 6f 63 61 |ined in |the.loca|
|000021c0| 6c 69 7a 61 74 69 6f 6e | 20 73 65 74 20 74 6f 20 |lization| set to |
|000021d0| 72 65 74 75 72 6e 20 6e | 75 6d 62 65 72 73 20 69 |return n|umbers i|
|000021e0| 6e 20 74 68 65 20 66 6f | 72 6d 61 74 20 75 73 65 |n the fo|rmat use|
|000021f0| 64 20 69 6e 20 47 65 72 | 6d 61 6e 79 2e 20 20 49 |d in Ger|many. I|
|00002200| 66 0a 74 68 65 20 63 61 | 6c 6c 20 77 61 73 20 73 |f.the ca|ll was s|
|00002210| 75 63 63 65 73 73 66 75 | 6c 2c 20 73 65 74 6c 6f |uccessfu|l, setlo|
|00002220| 63 61 6c 65 20 77 69 6c | 6c 20 72 65 74 75 72 6e |cale wil|l return|
|00002230| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 79 6f 75 | the nam|e of you|
|00002240| 72 0a 6c 6f 63 61 6c 65 | 2e 20 20 41 20 4e 55 4c |r.locale|. A NUL|
|00002250| 4c 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 69 |L return| value i|
|00002260| 6e 64 69 63 61 74 65 73 | 20 66 61 69 6c 75 72 65 |ndicates| failure|
|00002270| 2e 20 20 4e 6f 74 65 20 | 74 68 61 74 20 74 68 65 |. Note |that the|
|00002280| 0a 65 6e 76 69 72 6f 6e | 6d 65 6e 74 73 20 61 72 |.environ|ments ar|
|00002290| 65 20 70 72 65 64 65 74 | 65 72 6d 69 6e 65 64 20 |e predet|ermined |
|000022a0| 6f 75 74 73 69 64 65 20 | 79 6f 75 72 20 43 20 70 |outside |your C p|
|000022b0| 72 6f 67 72 61 6d 20 62 | 79 20 74 68 65 20 73 79 |rogram b|y the sy|
|000022c0| 73 74 65 6d 0a 79 6f 75 | 20 72 75 6e 20 6f 6e 2e |stem.you| run on.|
|000022d0| 20 28 53 6f 20 74 68 65 | 20 65 78 61 6d 70 6c 65 | (So the| example|
|000022e0| 20 67 69 76 65 6e 20 68 | 65 72 65 20 69 73 20 6c | given h|ere is l|
|000022f0| 69 6b 65 6c 79 20 74 6f | 20 66 61 69 6c 20 6f 6e |ikely to| fail on|
|00002300| 20 61 6c 6c 20 62 75 74 | 20 61 0a 66 65 77 20 73 | all but| a.few s|
|00002310| 79 73 74 65 6d 73 2e 29 | 20 43 68 65 63 6b 20 74 |ystems.)| Check t|
|00002320| 68 65 20 73 65 74 6c 6f | 63 61 6c 65 20 6d 61 6e |he setlo|cale man|
|00002330| 75 61 6c 20 70 61 67 65 | 20 6f 72 20 79 6f 75 72 |ual page| or your|
|00002340| 20 73 79 73 74 65 6d 0a | 64 6f 63 75 6d 65 6e 74 | system.|document|
|00002350| 61 74 69 6f 6e 20 74 6f | 20 66 69 6e 64 20 6f 75 |ation to| find ou|
|00002360| 74 20 61 62 6f 75 74 20 | 74 68 65 20 65 6e 76 69 |t about |the envi|
|00002370| 72 6f 6e 6d 65 6e 74 73 | 20 61 76 61 69 6c 61 62 |ronments| availab|
|00002380| 6c 65 2e 0a 0a 54 68 65 | 72 65 20 61 72 65 20 73 |le...The|re are s|
|00002390| 65 76 65 72 61 6c 20 4c | 4f 43 41 4c 45 20 74 79 |everal L|OCALE ty|
|000023a0| 70 65 73 20 61 76 61 69 | 6c 61 62 6c 65 20 66 6f |pes avai|lable fo|
|000023b0| 72 20 64 69 66 66 65 72 | 65 6e 74 20 6c 6f 63 61 |r differ|ent loca|
|000023c0| 6c 69 7a 61 74 69 6f 6e | 0a 61 73 70 65 63 74 73 |lization|.aspects|
|000023d0| 20 28 63 75 72 72 65 6e | 63 79 20 73 69 67 6e 2c | (curren|cy sign,|
|000023e0| 20 6e 75 6d 62 65 72 20 | 72 65 70 72 65 73 65 6e | number |represen|
|000023f0| 74 61 74 69 6f 6e 2c 20 | 63 68 61 72 61 63 74 65 |tation, |characte|
|00002400| 72 73 20 73 65 74 73 29 | 2e 20 54 68 65 0a 76 61 |rs sets)|. The.va|
|00002410| 6c 75 65 20 74 68 65 79 | 20 63 61 6e 20 74 61 6b |lue they| can tak|
|00002420| 65 20 69 73 20 68 69 67 | 68 6c 79 20 73 79 73 74 |e is hig|hly syst|
|00002430| 65 6d 20 64 65 70 65 6e | 64 65 6e 74 2e 20 41 6c |em depen|dent. Al|
|00002440| 73 6f 2c 20 69 74 20 73 | 68 6f 75 6c 64 20 62 65 |so, it s|hould be|
|00002450| 20 75 70 0a 74 6f 20 74 | 68 65 20 75 73 65 72 20 | up.to t|he user |
|00002460| 74 6f 20 64 65 66 69 6e | 65 20 74 68 65 20 6c 6f |to defin|e the lo|
|00002470| 63 61 6c 65 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |cale env|ironment|
|00002480| 20 68 65 20 6e 65 65 64 | 73 2e 20 0a 20 0a 41 20 | he need|s. . .A |
|00002490| 43 20 70 72 6f 67 72 61 | 6d 20 69 6e 68 65 72 69 |C progra|m inheri|
|000024a0| 74 73 20 69 74 73 20 6c | 6f 63 61 6c 65 20 65 6e |ts its l|ocale en|
|000024b0| 76 69 72 6f 6e 6d 65 6e | 74 20 76 61 72 69 61 62 |vironmen|t variab|
|000024c0| 6c 65 73 20 77 68 65 6e | 20 69 74 20 73 74 61 72 |les when| it star|
|000024d0| 74 73 20 75 70 2e 0a 54 | 68 69 73 20 68 61 70 70 |ts up..T|his happ|
|000024e0| 65 6e 73 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ens auto|maticall|
|000024f0| 79 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 74 68 65 |y. Howe|ver, the|
|00002500| 73 65 20 76 61 72 69 61 | 62 6c 65 73 20 64 6f 20 |se varia|bles do |
|00002510| 6e 6f 74 0a 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |not.auto|maticall|
|00002520| 79 20 63 6f 6e 74 72 6f | 6c 20 74 68 65 20 6c 6f |y contro|l the lo|
|00002530| 63 61 6c 65 20 75 73 65 | 64 20 62 79 20 74 68 65 |cale use|d by the|
|00002540| 20 6c 69 62 72 61 72 79 | 20 66 75 6e 63 74 69 6f | library| functio|
|00002550| 6e 73 2c 20 62 65 63 61 | 75 73 65 0a 49 53 4f 2f |ns, beca|use.ISO/|
|00002560| 41 4e 53 49 20 43 20 73 | 61 79 73 20 74 68 61 74 |ANSI C s|ays that|
|00002570| 20 61 6c 6c 20 70 72 6f | 67 72 61 6d 73 20 73 74 | all pro|grams st|
|00002580| 61 72 74 20 62 79 20 64 | 65 66 61 75 6c 74 20 69 |art by d|efault i|
|00002590| 6e 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 43 |n the st|andard C|
|000025a0| 0a 6c 6f 63 61 6c 65 2e | 20 20 54 6f 20 75 73 65 |.locale.| To use|
|000025b0| 20 74 68 65 20 6c 6f 63 | 61 6c 65 73 20 73 70 65 | the loc|ales spe|
|000025c0| 63 69 66 69 65 64 20 62 | 79 20 74 68 65 20 65 6e |cified b|y the en|
|000025d0| 76 69 72 6f 6e 6d 65 6e | 74 2c 20 54 68 65 20 50 |vironmen|t, The P|
|000025e0| 4f 53 49 58 0a 73 74 61 | 6e 64 61 72 64 20 64 65 |OSIX.sta|ndard de|
|000025f0| 66 69 6e 65 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |fines th|e follow|
|00002600| 69 6e 67 20 63 61 6c 6c | 3a 0a 2d 2d 2d 2d 2d 0a |ing call|:.-----.|
|00002610| 73 65 74 6c 6f 63 61 6c | 65 20 28 4c 43 5f 41 4c |setlocal|e (LC_AL|
|00002620| 4c 2c 20 22 22 29 3b 0a | 2d 2d 2d 2d 2d 0a 0a 4f |L, "");.|-----..O|
|00002630| 66 20 63 6f 75 72 73 65 | 2c 20 79 6f 75 20 63 61 |f course|, you ca|
|00002640| 6e 20 6f 6e 6c 79 20 73 | 65 74 20 70 61 72 74 20 |n only s|et part |
|00002650| 6f 66 20 79 6f 75 72 20 | 65 6e 76 69 72 6f 6e 6d |of your |environm|
|00002660| 65 6e 74 2c 20 62 79 20 | 63 61 6c 6c 69 6e 67 2c |ent, by |calling,|
|00002670| 20 73 61 79 3a 0a 2d 2d | 2d 2d 0a 73 65 74 6c 6f | say:.--|--.setlo|
|00002680| 63 61 6c 65 20 28 4c 43 | 5f 43 54 59 50 45 2c 20 |cale (LC|_CTYPE, |
|00002690| 22 22 29 3b 0a 2d 2d 2d | 2d 0a 54 68 69 73 20 6f |"");.---|-.This o|
|000026a0| 6e 6c 79 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |nly defi|nes the |
|000026b0| 63 68 61 72 61 63 74 65 | 72 20 63 6c 61 73 73 69 |characte|r classi|
|000026c0| 66 69 63 61 74 69 6f 6e | 20 6d 61 63 72 6f 73 20 |fication| macros |
|000026d0| 28 64 65 66 69 6e 65 64 | 20 69 6e 0a 63 74 79 70 |(defined| in.ctyp|
|000026e0| 65 2e 68 29 2e 0a 0a 54 | 68 69 73 20 69 73 20 61 |e.h)...T|his is a|
|000026f0| 20 6c 69 73 74 20 6f 66 | 20 6c 6f 63 61 6c 20 63 | list of| local c|
|00002700| 61 74 65 67 6f 72 69 65 | 73 3a 0a 0a 20 20 20 20 |ategorie|s:.. |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 45 | | E|
|00002720| 66 66 65 63 74 20 6f 66 | 20 53 70 65 63 69 66 79 |ffect of| Specify|
|00002730| 69 6e 67 20 20 20 45 6e | 76 69 72 6f 6e 6d 65 6e |ing En|vironmen|
|00002740| 74 20 56 61 72 69 61 62 | 6c 65 0a 20 20 20 20 20 |t Variab|le. |
|00002750| 63 61 74 65 67 6f 72 79 | 20 20 20 20 20 20 74 68 |category| th|
|00002760| 65 20 56 61 6c 75 65 20 | 20 20 20 20 20 20 20 20 |e Value | |
|00002770| 20 20 20 20 20 41 66 66 | 65 63 74 65 64 0a 20 20 | Aff|ected. |
|00002780| 20 20 20 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f | _____|________|
|00002790| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000027a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000027b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0a 0a 20 |________|_____.. |
|000027c0| 20 20 20 20 4c 43 5f 41 | 4c 4c 20 20 20 20 20 20 | LC_A|LL |
|000027d0| 20 20 53 65 74 73 20 6f | 72 20 71 75 65 72 69 65 | Sets o|r querie|
|000027e0| 73 20 20 20 20 20 20 20 | 20 4c 41 4e 47 0a 20 20 |s | LANG. |
|000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002800| 20 65 6e 74 69 72 65 20 | 65 6e 76 69 72 6f 6e 6d | entire |environm|
|00002810| 65 6e 74 0a 20 20 20 20 | 20 4c 43 5f 43 4f 4c 4c |ent. | LC_COLL|
|00002820| 41 54 45 20 20 20 20 43 | 68 61 6e 67 65 73 20 6f |ATE C|hanges o|
|00002830| 72 20 71 75 65 72 69 65 | 73 20 20 20 20 20 4c 43 |r querie|s LC|
|00002840| 5f 43 4f 4c 4c 41 54 45 | 0a 20 20 20 20 20 20 20 |_COLLATE|. |
|00002850| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6f 6c 6c | | coll|
|00002860| 61 74 69 6f 6e 20 73 65 | 71 75 65 6e 63 65 73 0a |ation se|quences.|
|00002870| 20 20 20 20 20 4c 43 5f | 43 54 59 50 45 20 20 20 | LC_|CTYPE |
|00002880| 20 20 20 43 68 61 6e 67 | 65 73 20 6f 72 20 71 75 | Chang|es or qu|
|00002890| 65 72 69 65 73 20 20 20 | 20 20 4c 43 5f 43 54 59 |eries | LC_CTY|
|000028a0| 50 45 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |PE. | |
|000028b0| 20 20 20 20 20 20 63 68 | 61 72 61 63 74 65 72 20 | ch|aracter |
|000028c0| 63 6c 61 73 73 69 66 69 | 2d 0a 20 20 20 20 20 20 |classifi|-. |
|000028d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 74 | | cat|
|000028e0| 69 6f 6e 0a 20 20 20 20 | 20 4c 43 5f 4e 55 4d 45 |ion. | LC_NUME|
|000028f0| 52 49 43 20 20 20 20 43 | 68 61 6e 67 65 73 20 6f |RIC C|hanges o|
|00002900| 72 20 71 75 65 72 69 65 | 73 20 20 20 20 20 4c 43 |r querie|s LC|
|00002910| 5f 4e 55 4d 45 52 49 43 | 0a 20 20 20 20 20 20 20 |_NUMERIC|. |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 20 20 6e 75 6d 62 | | numb|
|00002930| 65 72 20 66 6f 72 6d 61 | 74 20 69 6e 66 6f 72 2d |er forma|t infor-|
|00002940| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002950| 20 20 20 20 6d 61 74 69 | 6f 6e 0a 20 20 20 20 20 | mati|on. |
|00002960| 4c 43 5f 54 49 4d 45 20 | 20 20 20 20 20 20 43 68 |LC_TIME | Ch|
|00002970| 61 6e 67 65 73 20 6f 72 | 20 71 75 65 72 69 65 73 |anges or| queries|
|00002980| 20 20 20 20 20 4c 43 5f | 54 49 4d 45 0a 20 20 20 | LC_|TIME. |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029a0| 74 69 6d 65 20 63 6f 6e | 76 65 72 73 69 6f 6e 0a |time con|version.|
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029c0| 20 20 20 70 61 72 61 6d | 65 74 65 72 73 0a 20 20 | param|eters. |
|000029d0| 20 20 20 4c 43 5f 4d 4f | 4e 45 54 41 52 59 20 20 | LC_MO|NETARY |
|000029e0| 20 43 68 61 6e 67 65 73 | 20 6f 72 20 71 75 65 72 | Changes| or quer|
|000029f0| 69 65 73 20 20 20 20 20 | 4c 43 5f 4d 4f 4e 45 54 |ies |LC_MONET|
|00002a00| 41 52 59 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ARY. | |
|00002a10| 20 20 20 20 20 20 20 6d | 6f 6e 65 74 61 72 79 20 | m|onetary |
|00002a20| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 0a 0a 0a 0a |informat|ion.....|
|00002a30| 34 2e 20 55 73 69 6e 67 | 20 74 68 65 20 6c 6f 63 |4. Using| the loc|
|00002a40| 61 6c 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ale info|rmation |
|00002a50| 66 6f 72 20 63 68 61 72 | 61 63 74 65 72 20 63 6c |for char|acter cl|
|00002a60| 61 73 73 69 66 69 63 61 | 74 69 6f 6e 0a 49 66 20 |assifica|tion.If |
|00002a70| 79 6f 75 20 77 72 69 74 | 65 20 61 20 70 72 6f 67 |you writ|e a prog|
|00002a80| 72 61 6d 20 77 68 69 63 | 68 20 73 75 70 70 6f 72 |ram whic|h suppor|
|00002a90| 74 73 20 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |ts inter|national|
|00002aa0| 20 75 73 65 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 | use, yo|u should|
|00002ab0| 0a 75 73 65 20 74 68 65 | 20 61 76 61 69 6c 61 62 |.use the| availab|
|00002ac0| 6c 65 20 73 74 61 6e 64 | 61 72 64 69 7a 65 64 20 |le stand|ardized |
|00002ad0| 66 75 6e 63 74 69 6f 6e | 73 2c 20 61 73 20 6f 6e |function|s, as on|
|00002ae0| 6c 79 20 74 68 65 73 65 | 20 77 69 6c 6c 20 62 65 |ly these| will be|
|00002af0| 0a 69 6e 66 6c 75 65 6e | 63 65 64 20 62 79 20 74 |.influen|ced by t|
|00002b00| 68 65 20 73 65 74 6c 6f | 63 61 6c 65 20 63 61 6c |he setlo|cale cal|
|00002b10| 6c 2e 20 54 68 75 73 2c | 20 69 66 20 79 6f 75 20 |l. Thus,| if you |
|00002b20| 77 61 6e 74 20 74 6f 20 | 63 6f 6e 76 65 72 74 20 |want to |convert |
|00002b30| 61 0a 63 61 70 69 74 61 | 6c 20 6c 65 74 74 65 72 |a.capita|l letter|
|00002b40| 20 69 6e 20 63 20 74 6f | 20 61 20 6c 6f 77 65 72 | in c to| a lower|
|00002b50| 20 63 61 73 65 20 6c 65 | 74 74 65 72 20 69 6e 20 | case le|tter in |
|00002b60| 6c 2c 20 5f 64 6f 6e 27 | 74 5f 20 77 72 69 74 65 |l, _don'|t_ write|
|00002b70| 3a 0a 0a 6c 20 3d 20 63 | 20 2d 20 27 41 27 20 2b |:..l = c| - 'A' +|
|00002b80| 20 27 61 27 3b 0a 0a 57 | 68 69 6c 65 20 74 68 69 | 'a';..W|hile thi|
|00002b90| 73 20 77 69 6c 6c 20 77 | 6f 72 6b 20 66 6f 72 20 |s will w|ork for |
|00002ba0| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00002bb0| 65 20 55 53 2d 41 53 43 | 49 49 20 63 68 61 72 61 |e US-ASC|II chara|
|00002bc0| 63 74 65 72 20 73 65 74 | 2c 20 69 74 0a 77 69 6c |cter set|, it.wil|
|00002bd0| 6c 20 6e 6f 74 20 77 6f | 72 6b 20 77 69 74 68 20 |l not wo|rk with |
|00002be0| 6d 61 6e 79 20 6f 74 68 | 65 72 20 63 68 61 72 61 |many oth|er chara|
|00002bf0| 63 74 65 72 20 73 65 74 | 73 2e 20 54 68 65 20 66 |cter set|s. The f|
|00002c00| 6f 6c 6c 6f 77 69 6e 67 | 2c 0a 73 74 61 6e 64 61 |ollowing|,.standa|
|00002c10| 72 64 2d 63 6f 6e 66 6f | 72 6d 61 6e 74 20 63 6f |rd-confo|rmant co|
|00002c20| 64 65 20 77 69 6c 6c 3a | 0a 0a 23 69 6e 63 6c 75 |de will:|..#inclu|
|00002c30| 64 65 20 3c 63 74 79 70 | 65 2e 68 3e 0a 0a 2e 2e |de <ctyp|e.h>....|
|00002c40| 2e 2e 0a 0a 6c 20 3d 20 | 74 6f 6c 6f 77 65 72 28 |....l = |tolower(|
|00002c50| 63 29 3b 0a 0a 41 6c 73 | 6f 20 6e 6f 74 65 20 74 |c);..Als|o note t|
|00002c60| 68 61 74 20 74 68 65 20 | 73 65 63 6f 6e 64 20 63 |hat the |second c|
|00002c70| 6f 64 65 20 6d 61 79 20 | 61 63 74 75 61 6c 6c 79 |ode may |actually|
|00002c80| 20 62 65 20 66 61 73 74 | 65 72 20 74 68 61 6e 20 | be fast|er than |
|00002c90| 65 76 65 6e 20 74 68 65 | 0a 66 75 6c 6c 20 22 43 |even the|.full "C|
|00002ca0| 22 20 6c 6f 63 61 6c 65 | 20 66 75 6e 63 74 69 6f |" locale| functio|
|00002cb0| 6e 61 6c 69 74 79 20 28 | 66 6f 72 20 6d 6f 73 74 |nality (|for most|
|00002cc0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 73 | impleme|ntations|
|00002cd0| 29 2c 20 61 73 20 69 74 | 0a 72 65 70 6c 61 63 65 |), as it|.replace|
|00002ce0| 73 20 61 20 63 6f 6d 70 | 6c 65 78 20 65 78 70 72 |s a comp|lex expr|
|00002cf0| 65 73 73 69 6f 6e 20 28 | 20 28 63 3c 3d 27 5a 27 |ession (| (c<='Z'|
|00002d00| 20 26 26 20 63 3e 3d 27 | 41 27 29 3f 20 63 2d 27 | && c>='|A')? c-'|
|00002d10| 41 27 2b 61 3a 63 3b 20 | 29 62 79 20 61 20 73 69 |A'+a:c; |)by a si|
|00002d20| 6d 70 6c 65 0a 74 61 62 | 6c 65 20 6c 6f 6f 6b 75 |mple.tab|le looku|
|00002d30| 70 21 0a 0a 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |p!..Note| that th|
|00002d40| 69 73 20 49 53 4f 20 73 | 74 61 6e 64 61 72 64 20 |is ISO s|tandard |
|00002d50| 69 73 20 69 6e 64 65 70 | 65 6e 64 65 6e 74 20 6f |is indep|endent o|
|00002d60| 66 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |f the ch|aracter |
|00002d70| 73 65 74 0a 65 6e 63 6f | 64 69 6e 67 20 75 73 65 |set.enco|ding use|
|00002d80| 64 21 0a 0a 0a 0a 35 2e | 20 4c 61 6e 67 75 61 67 |d!....5.| Languag|
|00002d90| 65 20 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 6d 65 |e indepe|ndent me|
|00002da0| 73 73 61 67 65 73 0a 54 | 68 65 72 65 20 61 72 65 |ssages.T|here are|
|00002db0| 20 74 77 6f 20 63 6f 6d | 70 65 74 69 6e 67 20 73 | two com|peting s|
|00002dc0| 74 61 6e 64 61 72 64 73 | 20 66 6f 72 20 6c 61 6e |tandards| for lan|
|00002dd0| 67 75 61 67 65 20 69 6e | 64 65 70 65 6e 64 65 6e |guage in|dependen|
|00002de0| 74 20 6d 65 73 73 61 67 | 65 73 3a 0a 6f 6e 65 20 |t messag|es:.one |
|00002df0| 62 79 20 58 2f 4f 70 65 | 6e 2c 20 61 6e 64 20 61 |by X/Ope|n, and a|
|00002e00| 6e 6f 74 68 65 72 20 6f | 6e 65 20 70 72 6f 70 61 |nother o|ne propa|
|00002e10| 67 61 74 65 64 20 62 79 | 20 53 75 6e 2e 20 20 54 |gated by| Sun. T|
|00002e20| 68 65 20 58 2f 4f 70 65 | 6e 20 73 74 61 6e 64 61 |he X/Ope|n standa|
|00002e30| 72 64 0a 73 65 65 6d 73 | 20 74 6f 20 68 61 76 65 |rd.seems| to have|
|00002e40| 20 66 6f 75 6e 64 20 61 | 20 6c 61 72 67 65 72 20 | found a| larger |
|00002e50| 66 6f 6c 6c 6f 77 69 6e | 67 20 61 73 20 69 74 20 |followin|g as it |
|00002e60| 68 61 73 20 62 65 65 6e | 20 61 72 6f 75 6e 64 20 |has been| around |
|00002e70| 66 6f 72 20 61 0a 6c 6f | 6e 67 65 72 20 74 69 6d |for a.lo|nger tim|
|00002e80| 65 2e 20 20 41 73 20 6f | 66 20 53 6f 6c 61 72 69 |e. As o|f Solari|
|00002e90| 73 20 32 2e 78 2c 20 53 | 75 6e 20 73 75 70 70 6f |s 2.x, S|un suppo|
|00002ea0| 72 74 73 20 62 6f 74 68 | 20 74 68 65 20 58 2f 4f |rts both| the X/O|
|00002eb0| 70 65 6e 20 61 6e 64 20 | 53 75 6e 0a 6d 65 73 73 |pen and |Sun.mess|
|00002ec0| 61 67 65 20 73 74 61 6e | 64 61 72 64 73 2e 20 20 |age stan|dards. |
|00002ed0| 28 74 68 65 79 20 75 73 | 65 64 20 74 6f 20 73 75 |(they us|ed to su|
|00002ee0| 70 70 6f 72 74 20 6f 6e | 6c 79 20 74 68 65 69 72 |pport on|ly their|
|00002ef0| 20 6f 77 6e 20 22 73 74 | 61 6e 64 61 72 64 22 2e | own "st|andard".|
|00002f00| 29 0a 0a 35 2e 31 20 58 | 2f 4f 70 65 6e 20 6c 61 |)..5.1 X|/Open la|
|00002f10| 6e 67 75 61 67 65 20 69 | 6e 64 65 70 65 6e 64 65 |nguage i|ndepende|
|00002f20| 6e 74 20 6d 65 73 73 61 | 67 65 73 0a 58 2f 4f 70 |nt messa|ges.X/Op|
|00002f30| 65 6e 20 64 65 66 69 6e | 65 73 20 61 20 6d 65 74 |en defin|es a met|
|00002f40| 68 6f 64 20 66 6f 72 20 | 70 72 6f 76 69 64 69 6e |hod for |providin|
|00002f50| 67 20 6c 61 6e 67 75 61 | 67 65 2d 69 6e 64 65 70 |g langua|ge-indep|
|00002f60| 65 6e 64 65 6e 74 20 6d | 65 73 73 61 67 65 73 2e |endent m|essages.|
|00002f70| 0a 45 72 72 6f 72 20 6d | 65 73 73 61 67 65 73 20 |.Error m|essages |
|00002f80| 61 72 65 20 6b 65 70 74 | 20 69 6e 20 61 20 63 61 |are kept| in a ca|
|00002f90| 74 61 6c 6f 67 20 77 68 | 69 63 68 20 69 73 20 6f |talog wh|ich is o|
|00002fa0| 70 65 6e 65 64 20 75 70 | 6f 6e 20 70 72 6f 67 72 |pened up|on progr|
|00002fb0| 61 6d 0a 73 74 61 72 74 | 20 77 69 74 68 20 61 20 |am.start| with a |
|00002fc0| 6c 6f 63 61 6c 65 20 73 | 70 65 63 69 66 69 63 61 |locale s|pecifica|
|00002fd0| 74 69 6f 6e 2e 20 20 54 | 68 65 6e 20 74 68 65 20 |tion. T|hen the |
|00002fe0| 6d 65 73 73 61 67 65 20 | 6e 75 6d 62 65 72 20 61 |message |number a|
|00002ff0| 6e 64 20 61 20 73 65 74 | 0a 73 70 65 63 69 66 69 |nd a set|.specifi|
|00003000| 63 61 74 69 6f 6e 20 61 | 72 65 20 75 73 65 64 20 |cation a|re used |
|00003010| 74 6f 20 69 6e 64 65 78 | 20 74 68 65 20 6d 65 73 |to index| the mes|
|00003020| 73 61 67 65 20 63 61 74 | 61 6c 6f 67 2e 20 20 41 |sage cat|alog. A|
|00003030| 20 64 65 66 61 75 6c 74 | 20 66 6f 75 72 74 68 0a | default| fourth.|
|00003040| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 73 70 65 63 |argument| is spec|
|00003050| 69 66 69 65 64 20 77 68 | 69 63 68 20 77 69 6c 6c |ified wh|ich will|
|00003060| 20 62 65 20 70 72 69 6e | 74 65 64 20 69 66 20 61 | be prin|ted if a|
|00003070| 20 70 61 72 74 69 63 75 | 6c 61 72 20 6d 65 73 73 | particu|lar mess|
|00003080| 61 67 65 0a 63 61 6e 6e | 6f 74 20 62 65 20 66 6f |age.cann|ot be fo|
|00003090| 75 6e 64 20 69 6e 20 74 | 68 65 20 63 61 74 61 6c |und in t|he catal|
|000030a0| 6f 67 2e 20 0a 0a 48 65 | 72 65 20 69 73 20 74 68 |og. ..He|re is th|
|000030b0| 65 20 77 6f 72 6c 64 2d | 66 61 6d 6f 75 73 20 43 |e world-|famous C|
|000030c0| 20 70 72 6f 67 72 61 6d | 20 75 73 69 6e 67 20 74 | program| using t|
|000030d0| 68 65 20 6c 61 6e 67 75 | 61 67 65 2d 69 6e 64 65 |he langu|age-inde|
|000030e0| 70 65 6e 64 65 6e 74 0a | 58 2f 4f 70 65 6e 20 6d |pendent.|X/Open m|
|000030f0| 65 73 73 61 67 65 20 73 | 74 61 6e 64 61 72 64 3a |essage s|tandard:|
|00003100| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00003110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003120| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003130| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 23 69 6e 63 |--------|---.#inc|
|00003150| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 23 |lude <st|dio.h>.#|
|00003160| 69 6e 63 6c 75 64 65 20 | 3c 6e 6c 5f 74 79 70 65 |include |<nl_type|
|00003170| 73 2e 68 3e 0a 20 0a 23 | 64 65 66 69 6e 65 20 53 |s.h>. .#|define S|
|00003180| 45 54 20 31 0a 23 64 65 | 66 69 6e 65 20 4d 53 47 |ET 1.#de|fine MSG|
|00003190| 5f 48 45 4c 4c 4f 20 31 | 0a 20 0a 6e 6c 5f 63 61 |_HELLO 1|. .nl_ca|
|000031a0| 74 64 20 63 61 74 66 64 | 3b 0a 20 0a 69 6e 74 20 |td catfd|;. .int |
|000031b0| 6d 61 69 6e 20 28 69 6e | 74 20 61 72 67 63 2c 20 |main (in|t argc, |
|000031c0| 63 68 61 72 20 2a 2a 61 | 72 67 76 29 20 7b 0a 20 |char **a|rgv) {. |
|000031d0| 20 20 20 20 20 20 20 2f | 2a 20 4f 70 65 6e 20 74 | /|* Open t|
|000031e0| 68 65 20 6d 65 73 73 61 | 67 65 20 63 61 74 61 6c |he messa|ge catal|
|000031f0| 6f 67 2e 20 57 65 20 75 | 73 65 20 74 68 65 20 62 |og. We u|se the b|
|00003200| 61 73 65 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 70 |asename |of the p|
|00003210| 72 6f 67 72 61 6d 0a 20 | 20 20 20 20 20 20 20 20 |rogram. | |
|00003220| 2a 20 61 73 20 74 68 65 | 20 63 61 74 61 6c 6f 67 |* as the| catalog|
|00003230| 20 6e 61 6d 65 2e 20 4f | 66 20 63 6f 75 72 73 65 | name. O|f course|
|00003240| 2c 20 73 65 76 65 72 61 | 6c 20 70 72 6f 67 72 61 |, severa|l progra|
|00003250| 6d 73 20 63 61 6e 20 61 | 6c 73 6f 0a 20 20 20 20 |ms can a|lso. |
|00003260| 20 20 20 20 20 2a 20 73 | 68 61 72 65 20 61 20 20 | * s|hare a |
|00003270| 63 6f 6d 6d 6f 6e 20 63 | 61 74 61 6c 6f 67 2e 0a |common c|atalog..|
|00003280| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 20 20 20 20 | | */. |
|00003290| 20 20 20 20 63 61 74 66 | 64 20 3d 20 63 61 74 6f | catf|d = cato|
|000032a0| 70 65 6e 20 28 62 61 73 | 65 6e 61 6d 65 20 28 61 |pen (bas|ename (a|
|000032b0| 72 67 76 20 5b 30 5d 29 | 2c 20 4e 4c 5f 43 41 54 |rgv [0])|, NL_CAT|
|000032c0| 5f 4c 4f 43 41 4c 45 29 | 3b 0a 20 20 20 20 20 20 |_LOCALE)|;. |
|000032d0| 20 20 2f 2a 20 63 61 74 | 67 65 74 73 20 72 65 74 | /* cat|gets ret|
|000032e0| 75 72 6e 73 20 6d 65 73 | 73 61 67 65 20 4d 53 47 |urns mes|sage MSG|
|000032f0| 5f 48 45 4c 4c 4f 20 66 | 72 6f 6d 20 73 65 74 20 |_HELLO f|rom set |
|00003300| 53 45 54 20 66 72 6f 6d | 20 74 68 65 20 0a 20 20 |SET from| the . |
|00003310| 20 20 20 20 20 20 20 2a | 20 6d 65 73 73 61 67 65 | *| message|
|00003320| 20 63 61 74 61 6c 6f 67 | 20 63 61 74 66 64 2e 20 | catalog| catfd. |
|00003330| 49 66 20 63 61 74 66 64 | 20 64 6f 65 73 20 6e 6f |If catfd| does no|
|00003340| 74 20 72 65 66 65 72 20 | 74 6f 20 61 20 6d 65 73 |t refer |to a mes|
|00003350| 73 61 67 65 0a 20 20 20 | 20 20 20 20 20 20 2a 20 |sage. | * |
|00003360| 63 61 74 61 6c 6f 67 2c | 20 6f 72 20 74 68 65 20 |catalog,| or the |
|00003370| 72 65 71 75 65 73 74 65 | 64 20 6d 65 73 73 61 67 |requeste|d messag|
|00003380| 65 20 63 61 6e 6e 6f 74 | 20 62 65 20 66 6f 75 6e |e cannot| be foun|
|00003390| 64 2c 20 74 68 65 0a 20 | 20 20 20 20 20 20 20 20 |d, the. | |
|000033a0| 2a 20 63 61 74 61 6c 6f | 67 2c 20 6f 72 20 74 68 |* catalo|g, or th|
|000033b0| 65 20 72 65 71 75 65 73 | 74 65 64 20 6d 65 73 73 |e reques|ted mess|
|000033c0| 61 67 65 20 63 61 6e 6e | 6f 74 20 62 65 20 66 6f |age cann|ot be fo|
|000033d0| 75 6e 64 2c 20 74 68 65 | 0a 20 20 20 20 20 20 20 |und, the|. |
|000033e0| 20 20 2a 20 66 6f 75 72 | 74 68 20 61 72 67 75 6d | * four|th argum|
|000033f0| 65 6e 74 20 69 73 20 72 | 65 74 75 72 6e 65 64 2e |ent is r|eturned.|
|00003400| 0a 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 20 20 20 |. | */. |
|00003410| 20 20 20 20 20 70 72 69 | 6e 74 66 20 28 63 61 74 | pri|ntf (cat|
|00003420| 67 65 74 73 20 28 63 61 | 74 66 64 2c 20 53 45 54 |gets (ca|tfd, SET|
|00003430| 2c 20 4d 53 47 5f 48 45 | 4c 4c 4f 2c 20 22 68 65 |, MSG_HE|LLO, "he|
|00003440| 6c 6c 6f 2c 20 77 6f 72 | 6c 64 5c 6e 22 29 29 3b |llo, wor|ld\n"));|
|00003450| 0a 20 20 20 20 20 20 20 | 20 63 61 74 63 6c 6f 73 |. | catclos|
|00003460| 65 20 28 63 61 74 66 64 | 29 3b 0a 20 20 20 20 20 |e (catfd|);. |
|00003470| 20 20 20 72 65 74 75 72 | 6e 20 30 3b 0a 7d 0a 2d | retur|n 0;.}.-|
|00003480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034c0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 46 6f 72 20 63 61 |--------|..For ca|
|000034d0| 74 6f 70 65 6e 2c 20 73 | 70 65 63 69 66 79 20 74 |topen, s|pecify t|
|000034e0| 68 65 20 63 6f 6e 73 74 | 61 6e 74 20 4e 4c 5f 43 |he const|ant NL_C|
|000034f0| 41 54 5f 4c 4f 43 41 4c | 45 20 74 6f 20 6f 70 65 |AT_LOCAL|E to ope|
|00003500| 6e 20 74 68 65 20 6d 65 | 73 73 61 67 65 0a 63 61 |n the me|ssage.ca|
|00003510| 74 61 6c 6f 67 20 66 6f | 72 20 74 68 65 20 6c 6f |talog fo|r the lo|
|00003520| 63 61 6c 65 20 73 65 74 | 20 66 6f 72 20 74 68 65 |cale set| for the|
|00003530| 20 4c 43 5f 4d 45 53 53 | 41 47 45 53 20 76 61 72 | LC_MESS|AGES var|
|00003540| 69 61 62 6c 65 3b 20 75 | 73 69 6e 67 0a 4e 4c 5f |iable; u|sing.NL_|
|00003550| 43 41 54 5f 4c 4f 43 41 | 4c 45 20 63 6f 6e 66 6f |CAT_LOCA|LE confo|
|00003560| 72 6d 73 20 74 6f 20 74 | 68 65 20 58 50 47 34 20 |rms to t|he XPG4 |
|00003570| 73 74 61 6e 64 61 72 64 | 2e 20 20 59 6f 75 20 63 |standard|. You c|
|00003580| 61 6e 20 73 70 65 63 69 | 66 79 20 30 20 28 7a 65 |an speci|fy 0 (ze|
|00003590| 72 6f 29 0a 66 6f 72 20 | 63 6f 6d 70 61 74 69 62 |ro).for |compatib|
|000035a0| 69 6c 69 74 79 20 77 69 | 74 68 20 58 50 47 33 3b |ility wi|th XPG3;|
|000035b0| 20 77 68 65 6e 20 6f 66 | 6c 61 67 20 69 73 20 73 | when of|lag is s|
|000035c0| 65 74 20 74 6f 20 7a 65 | 72 6f 2c 20 74 68 65 20 |et to ze|ro, the |
|000035d0| 6c 6f 63 61 6c 65 20 73 | 65 74 0a 66 6f 72 20 74 |locale s|et.for t|
|000035e0| 68 65 20 4c 41 4e 47 20 | 76 61 72 69 61 62 6c 65 |he LANG |variable|
|000035f0| 20 64 65 74 65 72 6d 69 | 6e 65 73 20 74 68 65 20 | determi|nes the |
|00003600| 6d 65 73 73 61 67 65 20 | 63 61 74 61 6c 6f 67 20 |message |catalog |
|00003610| 6c 6f 63 61 6c 65 2e 0a | 0a 53 65 76 65 72 61 6c |locale..|.Several|
|00003620| 20 75 74 69 6c 69 74 69 | 65 73 20 65 78 69 73 74 | utiliti|es exist|
|00003630| 20 66 6f 72 20 67 65 6e | 65 72 61 74 69 6e 67 20 | for gen|erating |
|00003640| 6d 65 73 73 61 67 65 20 | 63 61 74 61 6c 6f 67 73 |message |catalogs|
|00003650| 20 61 6e 64 20 66 6f 72 | 0a 75 70 67 72 61 64 69 | and for|.upgradi|
|00003660| 6e 67 20 70 72 6f 67 72 | 61 6d 73 20 77 68 69 63 |ng progr|ams whic|
|00003670| 68 20 63 6f 6e 74 61 69 | 6e 20 68 61 72 64 2d 77 |h contai|n hard-w|
|00003680| 69 72 65 64 20 73 74 72 | 69 6e 67 73 3a 0a 2a 20 |ired str|ings:.* |
|00003690| 67 65 6e 63 61 74 20 69 | 73 20 75 73 65 64 20 74 |gencat i|s used t|
|000036a0| 6f 20 67 65 6e 65 72 61 | 74 65 20 6d 65 73 73 61 |o genera|te messa|
|000036b0| 67 65 20 63 61 74 61 6c | 6f 67 73 0a 5b 41 6c 6c |ge catal|ogs.[All|
|000036c0| 20 6f 74 68 65 72 20 70 | 72 6f 67 72 61 6d 73 20 | other p|rograms |
|000036d0| 61 72 65 20 4f 53 2d 73 | 70 65 63 69 66 69 63 3a |are OS-s|pecific:|
|000036e0| 5d 0a 2a 20 55 6c 74 72 | 69 78 20 61 6e 64 20 4f |].* Ultr|ix and O|
|000036f0| 53 46 20 73 75 70 70 6f | 72 74 20 74 68 65 20 65 |SF suppo|rt the e|
|00003700| 78 74 72 61 63 74 20 70 | 72 6f 67 72 61 6d 20 77 |xtract p|rogram w|
|00003710| 68 69 63 68 20 77 69 6c | 6c 20 65 78 74 72 61 63 |hich wil|l extrac|
|00003720| 74 20 73 74 72 69 6e 67 | 0a 20 20 63 6f 6e 73 74 |t string|. const|
|00003730| 61 6e 74 73 20 66 72 6f | 6d 20 74 68 65 20 43 20 |ants fro|m the C |
|00003740| 73 6f 75 72 63 65 20 63 | 6f 64 65 2c 20 61 6e 64 |source c|ode, and|
|00003750| 20 68 61 73 20 61 6e 20 | 6f 70 74 69 6f 6e 20 74 | has an |option t|
|00003760| 6f 20 72 65 70 6c 61 63 | 65 20 74 68 65 73 65 0a |o replac|e these.|
|00003770| 20 20 73 74 72 69 6e 67 | 73 20 77 69 74 68 20 63 | string|s with c|
|00003780| 61 6c 6c 73 20 74 6f 20 | 63 61 74 67 65 74 73 2e |alls to |catgets.|
|00003790| 0a 2a 20 48 50 2f 55 58 | 20 68 61 73 20 61 20 73 |.* HP/UX| has a s|
|000037a0| 69 6d 69 6c 61 72 20 75 | 74 69 6c 69 74 79 20 63 |imilar u|tility c|
|000037b0| 61 6c 6c 65 64 20 66 69 | 6e 64 6d 73 67 2e 0a 2a |alled fi|ndmsg..*|
|000037c0| 20 55 6e 64 65 72 20 4f | 53 46 2c 20 6d 65 73 73 | Under O|SF, mess|
|000037d0| 61 67 65 20 63 61 74 61 | 6c 6f 67 73 20 6d 61 79 |age cata|logs may|
|000037e0| 20 62 65 20 6c 69 73 74 | 65 64 20 77 69 74 68 20 | be list|ed with |
|000037f0| 74 68 65 20 64 73 70 63 | 61 74 20 75 74 69 6c 69 |the dspc|at utili|
|00003800| 74 79 2e 0a 2a 20 48 50 | 2f 55 58 20 63 61 6c 6c |ty..* HP|/UX call|
|00003810| 73 20 61 20 73 69 6d 69 | 6c 61 72 20 75 74 69 6c |s a simi|lar util|
|00003820| 69 74 79 20 64 75 6d 70 | 6d 73 67 2e 0a 0a 0a 35 |ity dump|msg....5|
|00003830| 2e 32 20 53 75 6e 2f 55 | 6e 69 66 6f 72 75 6d 20 |.2 Sun/U|niforum |
|00003840| 0a 53 75 6e 20 69 6d 70 | 6c 65 6d 65 6e 74 73 20 |.Sun imp|lements |
|00003850| 61 20 64 69 66 66 65 72 | 65 6e 74 20 73 65 74 20 |a differ|ent set |
|00003860| 6f 66 20 66 75 6e 63 74 | 69 6f 6e 73 20 66 75 6e |of funct|ions fun|
|00003870| 63 74 69 6f 6e 73 20 74 | 6f 20 73 75 70 70 6f 72 |ctions t|o suppor|
|00003880| 74 20 69 31 38 6e 0a 6f | 66 20 6d 65 73 73 61 67 |t i18n.o|f messag|
|00003890| 65 73 2e 20 20 54 68 69 | 73 20 6d 65 63 68 61 6e |es. Thi|s mechan|
|000038a0| 69 73 6d 20 69 73 20 6e | 6f 77 20 61 6c 73 6f 20 |ism is n|ow also |
|000038b0| 75 73 65 64 20 62 79 20 | 74 68 65 20 47 4e 55 20 |used by |the GNU |
|000038c0| 70 72 6f 6a 65 63 74 20 | 74 6f 0a 73 75 70 70 6f |project |to.suppo|
|000038d0| 72 74 20 6c 6f 63 61 6c | 69 7a 65 64 20 65 72 72 |rt local|ized err|
|000038e0| 6f 72 20 6d 65 73 73 61 | 67 65 73 3a 0a 0a 59 6f |or messa|ges:..Yo|
|000038f0| 75 20 63 61 6e 20 65 69 | 74 68 65 72 20 75 73 65 |u can ei|ther use|
|00003900| 3a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |:.------|--------|
|00003910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003920| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003930| 2d 0a 0a 6d 61 69 6e 28 | 29 0a 7b 0a 09 2f 2f 20 |-..main(|).{..// |
|00003940| 67 65 74 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 |get the |message |
|00003950| 63 61 74 61 6c 6f 67 20 | 6e 61 6d 65 64 20 22 68 |catalog |named "h|
|00003960| 65 6c 6c 6f 70 72 6f 67 | 72 61 6d 22 20 0a 09 2f |elloprog|ram" ../|
|00003970| 2f 20 66 6f 72 20 74 68 | 65 20 68 65 6c 6c 6f 20 |/ for th|e hello |
|00003980| 77 6f 72 6c 64 20 70 72 | 6f 67 72 61 6d 0a 09 74 |world pr|ogram..t|
|00003990| 65 78 74 64 6f 6d 61 69 | 6e 28 22 68 65 6c 6c 6f |extdomai|n("hello|
|000039a0| 70 72 6f 67 72 61 6d 22 | 29 3b 09 0a 0a 09 2f 2f |program"|);....//|
|000039b0| 20 67 65 74 20 74 68 65 | 20 74 72 61 6e 73 6c 61 | get the| transla|
|000039c0| 74 69 6f 6e 20 66 6f 72 | 20 74 68 65 20 22 48 65 |tion for| the "He|
|000039d0| 6c 6c 6f 2c 20 77 6f 72 | 6c 64 5c 6e 22 20 73 74 |llo, wor|ld\n" st|
|000039e0| 72 69 6e 67 0a 09 70 72 | 69 6e 74 66 28 67 65 74 |ring..pr|intf(get|
|000039f0| 74 65 78 74 28 22 48 65 | 6c 6c 6f 2c 20 77 6f 72 |text("He|llo, wor|
|00003a00| 6c 64 5c 6e 22 29 29 3b | 0a 7d 0a 2d 2d 2d 2d 2d |ld\n"));|.}.-----|
|00003a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 0a 6f 72 20 79 |--------|--..or y|
|00003a40| 6f 75 20 63 61 6e 20 72 | 6f 6c 6c 20 61 6c 6c 20 |ou can r|oll all |
|00003a50| 69 6e 20 6f 6e 65 20 61 | 6e 64 20 77 72 69 74 65 |in one a|nd write|
|00003a60| 0a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..------|--------|
|00003a70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a90| 2d 0a 6d 61 69 6e 28 29 | 0a 7b 0a 09 2f 2f 20 67 |-.main()|.{..// g|
|00003aa0| 65 74 20 74 68 65 20 74 | 72 61 6e 73 6c 61 74 69 |et the t|ranslati|
|00003ab0| 6f 6e 20 66 6f 72 20 74 | 68 65 20 22 48 65 6c 6c |on for t|he "Hell|
|00003ac0| 6f 2c 20 77 6f 72 6c 64 | 5c 6e 22 20 73 74 72 69 |o, world|\n" stri|
|00003ad0| 6e 67 20 0a 09 2f 2f 20 | 66 72 6f 6d 20 74 68 65 |ng ..// |from the|
|00003ae0| 20 6d 65 73 73 61 67 65 | 20 63 61 74 61 6c 6f 67 | message| catalog|
|00003af0| 20 22 68 65 6c 6c 6f 70 | 72 6f 67 72 61 6d 22 0a | "hellop|rogram".|
|00003b00| 09 70 72 69 6e 74 66 28 | 64 67 65 74 74 65 78 74 |.printf(|dgettext|
|00003b10| 28 22 68 65 6c 6c 6f 70 | 72 6f 67 72 61 6d 22 2c |("hellop|rogram",|
|00003b20| 22 48 65 6c 6c 6f 2c 20 | 77 6f 72 6c 64 5c 6e 22 |"Hello, |world\n"|
|00003b30| 29 29 3b 0a 7d 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |));.}.--|--------|
|00003b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b60| 2d 2d 2d 2d 2d 0a 0a 54 | 68 65 20 4c 43 5f 4d 45 |-----..T|he LC_ME|
|00003b70| 53 53 41 47 45 53 20 6c | 6f 63 61 6c 65 20 63 61 |SSAGES l|ocale ca|
|00003b80| 74 65 67 6f 72 79 20 73 | 65 74 74 69 6e 67 20 64 |tegory s|etting d|
|00003b90| 65 74 65 72 6d 69 6e 65 | 73 20 74 68 65 20 6c 6f |etermine|s the lo|
|00003ba0| 63 61 6c 65 20 6f 66 0a | 73 74 72 69 6e 67 73 20 |cale of.|strings |
|00003bb0| 74 68 61 74 20 67 65 74 | 74 65 78 74 28 29 20 72 |that get|text() r|
|00003bc0| 65 74 75 72 6e 73 2e 20 | 20 54 68 65 20 6d 65 73 |eturns. | The mes|
|00003bd0| 73 61 67 65 20 63 61 74 | 61 6c 6f 67 73 20 61 72 |sage cat|alogs ar|
|00003be0| 65 20 67 65 6e 65 72 61 | 74 65 64 0a 77 69 74 68 |e genera|ted.with|
|00003bf0| 20 65 69 74 68 65 72 20 | 74 68 65 20 69 6e 73 74 | either |the inst|
|00003c00| 61 6c 6c 74 78 74 20 6f | 72 20 67 65 6e 63 61 74 |alltxt o|r gencat|
|00003c10| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0a 0a 4e 6f 20 6f | command|s...No o|
|00003c20| 70 65 6e 69 6e 67 20 6f | 66 20 66 69 6c 65 73 20 |pening o|f files |
|00003c30| 61 73 20 69 6e 20 74 68 | 65 20 6f 6c 64 20 53 59 |as in th|e old SY|
|00003c40| 53 20 56 20 61 6e 64 20 | 58 2f 4f 70 65 6e 20 72 |S V and |X/Open r|
|00003c50| 6f 75 74 69 6e 65 73 2c | 20 61 6e 64 20 6e 6f 0a |outines,| and no.|
|00003c60| 68 61 6e 64 6c 69 6e 67 | 20 6f 66 20 6d 65 73 73 |handling| of mess|
|00003c70| 61 67 65 20 6e 75 6d 62 | 65 72 73 20 74 68 61 74 |age numb|ers that|
|00003c80| 20 79 6f 75 20 6d 75 73 | 74 20 68 61 76 65 20 69 | you mus|t have i|
|00003c90| 6e 20 61 20 64 61 74 61 | 62 61 73 65 20 74 6f 0a |n a data|base to.|
|00003ca0| 61 64 6d 69 6e 69 73 74 | 65 72 2e 20 20 48 6f 77 |administ|er. How|
|00003cb0| 65 76 65 72 2c 20 74 68 | 69 73 20 6d 65 63 68 61 |ever, th|is mecha|
|00003cc0| 6e 69 73 6d 20 69 73 20 | 6f 6e 6c 79 20 73 75 70 |nism is |only sup|
|00003cd0| 70 6f 72 74 65 64 20 62 | 79 20 53 75 6e 2e 20 20 |ported b|y Sun. |
|00003ce0| 53 75 6e 0a 74 72 69 65 | 64 20 74 6f 20 70 75 73 |Sun.trie|d to pus|
|00003cf0| 68 20 69 74 20 69 6e 74 | 6f 20 43 4f 53 45 2c 20 |h it int|o COSE, |
|00003d00| 62 75 74 20 77 69 74 68 | 6f 75 74 20 73 75 63 63 |but with|out succ|
|00003d10| 65 73 73 2e 20 0a 0a 54 | 68 69 73 20 6d 65 63 68 |ess. ..T|his mech|
|00003d20| 61 6e 69 73 6d 20 69 73 | 20 61 76 61 69 6c 61 62 |anism is| availab|
|00003d30| 6c 65 20 65 69 74 68 65 | 20 77 69 74 68 20 74 68 |le eithe| with th|
|00003d40| 65 20 58 76 69 65 77 20 | 65 6e 76 69 72 6f 6e 6d |e Xview |environm|
|00003d50| 65 6e 74 20 28 74 68 65 | 0a 73 6f 75 72 63 65 20 |ent (the|.source |
|00003d60| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 77 69 74 |is avail|able wit|
|00003d70| 68 20 74 68 65 20 58 56 | 69 65 77 20 63 6f 64 65 |h the XV|iew code|
|00003d80| 29 2c 20 6f 72 20 66 72 | 6f 6d 20 74 68 65 20 47 |), or fr|om the G|
|00003d90| 4e 55 20 70 72 6f 6a 65 | 63 74 20 61 74 0a 66 74 |NU proje|ct at.ft|
|00003da0| 70 3a 2f 2f 70 72 65 70 | 2e 61 69 2e 6d 69 74 2e |p://prep|.ai.mit.|
|00003db0| 65 64 75 2f 70 75 62 2f | 67 6e 75 2f 67 65 74 74 |edu/pub/|gnu/gett|
|00003dc0| 65 78 74 2d 30 2e 37 2e | 74 61 72 2e 67 7a 2e 20 |ext-0.7.|tar.gz. |
|00003dd0| 0a 0a 0a 0a 35 2e 33 20 | 50 4f 53 49 58 20 6c 61 |....5.3 |POSIX la|
|00003de0| 6e 67 75 61 67 65 20 69 | 6e 64 65 70 65 6e 64 65 |nguage i|ndepende|
|00003df0| 6e 74 20 6d 65 73 73 61 | 67 65 73 0a 4e 65 69 74 |nt messa|ges.Neit|
|00003e00| 68 65 72 20 6f 66 20 74 | 68 65 20 70 72 65 76 69 |her of t|he previ|
|00003e10| 6f 75 73 20 74 77 6f 20 | 6d 65 63 68 61 6e 69 73 |ous two |mechanis|
|00003e20| 6d 73 20 69 73 20 69 6e | 20 74 68 65 20 50 4f 53 |ms is in| the POS|
|00003e30| 49 58 20 73 74 61 6e 64 | 61 72 64 2e 0a 54 68 65 |IX stand|ard..The|
|00003e40| 72 65 20 77 61 73 20 6d | 75 63 68 20 64 69 73 61 |re was m|uch disa|
|00003e50| 67 72 65 65 6d 65 6e 74 | 20 69 6e 20 74 68 65 20 |greement| in the |
|00003e60| 50 4f 53 49 58 2e 31 20 | 63 6f 6d 6d 69 74 74 65 |POSIX.1 |committe|
|00003e70| 65 20 61 62 6f 75 74 20 | 75 73 69 6e 67 20 74 68 |e about |using th|
|00003e80| 65 0a 67 65 74 74 65 78 | 74 20 72 6f 75 74 69 6e |e.gettex|t routin|
|00003e90| 65 73 20 76 73 2e 20 63 | 61 74 67 65 74 73 20 28 |es vs. c|atgets (|
|00003ea0| 58 50 47 29 2e 20 20 49 | 6e 20 74 68 65 20 65 6e |XPG). I|n the en|
|00003eb0| 64 20 74 68 65 20 63 6f | 6d 6d 69 74 74 65 65 20 |d the co|mmittee |
|00003ec0| 63 6f 75 6c 64 6e 27 74 | 0a 61 67 72 65 65 20 6f |couldn't|.agree o|
|00003ed0| 6e 20 61 6e 79 74 68 69 | 6e 67 2c 20 73 6f 20 6e |n anythi|ng, so n|
|00003ee0| 6f 20 6d 65 73 73 61 67 | 69 6e 67 20 73 79 73 74 |o messag|ing syst|
|00003ef0| 65 6d 20 77 61 73 20 69 | 6e 63 6c 75 64 65 64 20 |em was i|ncluded |
|00003f00| 61 73 20 70 61 72 74 20 | 6f 66 20 74 68 65 0a 73 |as part |of the.s|
|00003f10| 74 61 6e 64 61 72 64 2e | 20 49 20 62 65 6c 69 65 |tandard.| I belie|
|00003f20| 76 65 20 74 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |ve the i|nformati|
|00003f30| 76 65 20 61 6e 6e 65 78 | 20 6f 66 20 74 68 65 20 |ve annex| of the |
|00003f40| 73 74 61 6e 64 61 72 64 | 20 69 6e 63 6c 75 64 65 |standard| include|
|00003f50| 73 20 74 68 65 0a 58 50 | 47 33 20 6d 65 73 73 61 |s the.XP|G3 messa|
|00003f60| 67 69 6e 67 20 69 6e 74 | 65 72 66 61 63 65 73 2c |ging int|erfaces,|
|00003f70| 20 22 2e 2e 2e 61 73 20 | 61 6e 20 65 78 61 6d 70 | "...as |an examp|
|00003f80| 6c 65 20 6f 66 20 61 20 | 6d 65 73 73 61 67 69 6e |le of a |messagin|
|00003f90| 67 20 73 79 73 74 65 6d | 0a 74 68 61 74 20 68 61 |g system|.that ha|
|00003fa0| 73 20 62 65 65 6e 20 69 | 6d 70 6c 65 6d 65 6e 74 |s been i|mplement|
|00003fb0| 65 64 2e 2e 2e 22 0a 0a | 54 68 65 79 20 77 65 72 |ed..."..|They wer|
|00003fc0| 65 20 76 65 72 79 20 63 | 61 72 65 66 75 6c 20 6e |e very c|areful n|
|00003fd0| 6f 74 20 74 6f 20 73 61 | 79 20 61 6e 79 77 68 65 |ot to sa|y anywhe|
|00003fe0| 72 65 20 74 68 61 74 20 | 79 6f 75 20 73 68 6f 75 |re that |you shou|
|00003ff0| 6c 64 20 75 73 65 20 6f | 6e 65 20 73 65 74 0a 6f |ld use o|ne set.o|
|00004000| 66 20 69 6e 74 65 72 66 | 61 63 65 73 20 6f 76 65 |f interf|aces ove|
|00004010| 72 20 74 68 65 20 6f 74 | 68 65 72 2e 0a 0a 0a 0a |r the ot|her.....|
|00004020| 36 2e 20 4f 74 68 65 72 | 20 6c 6f 63 61 6c 69 7a |6. Other| localiz|
|00004030| 61 74 69 6f 6e 20 61 73 | 70 65 63 74 73 20 69 6e |ation as|pects in|
|00004040| 20 49 53 4f 2f 41 4e 53 | 49 20 43 20 28 61 6e 64 | ISO/ANS|I C (and|
|00004050| 20 50 4f 53 49 58 20 65 | 6e 76 69 72 6f 6e 6d 65 | POSIX e|nvironme|
|00004060| 6e 74 73 29 0a 46 6f 72 | 20 61 20 6d 6f 72 65 20 |nts).For| a more |
|00004070| 74 68 6f 72 6f 75 67 68 | 20 64 69 73 63 75 73 73 |thorough| discuss|
|00004080| 69 6f 6e 20 6f 66 20 6c | 6f 63 61 6c 69 7a 61 74 |ion of l|ocalizat|
|00004090| 69 6f 6e 20 61 6e 64 0a | 69 6e 74 65 72 6e 61 74 |ion and.|internat|
|000040a0| 69 6f 6e 61 6c 69 7a 61 | 74 69 6f 6e 20 28 61 6b |ionaliza|tion (ak|
|000040b0| 61 2e 20 69 31 38 6e 29 | 2c 20 63 68 65 63 6b 20 |a. i18n)|, check |
|000040c0| 79 6f 75 72 20 73 79 73 | 74 65 6d 20 76 65 6e 64 |your sys|tem vend|
|000040d0| 6f 72 73 0a 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ors.docu|mentatio|
|000040e0| 6e 2c 20 61 6e 64 20 74 | 68 65 20 43 20 6c 69 62 |n, and t|he C lib|
|000040f0| 72 61 72 79 20 6d 61 6e | 75 61 6c 20 77 68 69 63 |rary man|ual whic|
|00004100| 68 20 63 6f 6d 65 73 20 | 77 69 74 68 20 74 68 65 |h comes |with the|
|00004110| 20 46 53 46 27 73 0a 67 | 6c 69 62 63 20 6c 69 62 | FSF's.g|libc lib|
|00004120| 72 61 72 79 20 28 43 68 | 61 70 74 65 72 20 31 39 |rary (Ch|apter 19|
|00004130| 2c 20 27 4c 6f 63 61 6c | 65 73 20 61 6e 64 20 49 |, 'Local|es and I|
|00004140| 6e 74 65 72 6e 61 74 69 | 6f 6e 61 6c 69 7a 61 74 |nternati|onalizat|
|00004150| 69 6f 6e 27 29 2e 0a 0a | 0a 0a 37 2e 20 49 6e 74 |ion')...|..7. Int|
|00004160| 65 72 6e 61 74 69 6f 6e | 61 6c 69 7a 61 74 69 6f |ernation|alizatio|
|00004170| 6e 20 75 6e 64 65 72 20 | 58 31 31 0a 57 68 69 6c |n under |X11.Whil|
|00004180| 65 20 58 31 31 20 69 73 | 20 66 61 72 74 68 65 72 |e X11 is| farther|
|00004190| 20 74 68 61 6e 20 6d 6f | 73 74 20 73 79 73 74 65 | than mo|st syste|
|000041a0| 6d 20 73 6f 66 74 77 61 | 72 65 20 77 68 65 6e 20 |m softwa|re when |
|000041b0| 69 74 20 63 6f 6d 65 73 | 20 74 6f 0a 69 6e 74 65 |it comes| to.inte|
|000041c0| 72 6e 61 74 69 6f 6e 61 | 6c 69 7a 61 74 69 6f 6e |rnationa|lization|
|000041d0| 2c 20 69 74 20 73 74 69 | 6c 6c 20 63 6f 6e 74 61 |, it sti|ll conta|
|000041e0| 69 6e 73 20 6d 61 6e 79 | 20 62 75 67 73 2e 20 20 |ins many| bugs. |
|000041f0| 41 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 75 67 0a |A number| of bug.|
|00004200| 66 69 78 65 73 20 63 61 | 6e 20 62 65 20 66 6f 75 |fixes ca|n be fou|
|00004210| 6e 64 20 61 74 20 55 52 | 4c 20 68 74 74 70 3a 2f |nd at UR|L http:/|
|00004220| 2f 77 77 77 2e 64 74 65 | 6b 2e 63 68 61 6c 6d 65 |/www.dte|k.chalme|
|00004230| 72 73 2e 73 65 3a 38 30 | 2f 7e 6d 61 66 2f 69 31 |rs.se:80|/~maf/i1|
|00004240| 38 6e 2f 2e 0a 0a 37 2e | 31 20 4f 75 74 70 75 74 |8n/...7.|1 Output|
|00004250| 0a 54 6f 20 6f 75 74 70 | 75 74 20 74 65 78 74 20 |.To outp|ut text |
|00004260| 65 6e 63 6f 64 65 64 20 | 77 69 74 68 20 49 53 4f |encoded |with ISO|
|00004270| 20 38 38 35 39 2d 31 20 | 75 6e 64 65 72 20 58 31 | 8859-1 |under X1|
|00004280| 31 2c 20 73 69 6d 70 6c | 79 20 69 6e 76 6f 6b 65 |1, simpl|y invoke|
|00004290| 20 74 68 65 20 58 0a 64 | 69 73 70 6c 61 79 20 72 | the X.d|isplay r|
|000042a0| 6f 75 74 69 6e 65 73 20 | 77 69 74 68 20 38 20 62 |outines |with 8 b|
|000042b0| 69 74 20 63 68 61 72 61 | 63 74 65 72 73 20 61 73 |it chara|cters as|
|000042c0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 75 73 65 20 74 | you wou|ld use t|
|000042d0| 68 65 6d 20 77 69 74 68 | 0a 37 2d 62 69 74 20 41 |hem with|.7-bit A|
|000042e0| 53 43 49 49 2e 20 20 59 | 6f 75 20 73 68 6f 75 6c |SCII. Y|ou shoul|
|000042f0| 64 20 68 6f 77 65 76 65 | 72 20 63 68 6f 6f 73 65 |d howeve|r choose|
|00004300| 20 61 20 66 6f 6e 74 20 | 77 68 69 63 68 20 63 6f | a font |which co|
|00004310| 6e 74 61 69 6e 73 20 62 | 69 74 6d 61 70 73 0a 66 |ntains b|itmaps.f|
|00004320| 6f 72 20 74 68 65 73 65 | 20 63 68 61 72 61 63 74 |or these| charact|
|00004330| 65 72 73 2e 20 20 59 6f | 75 20 63 61 6e 20 75 73 |ers. Yo|u can us|
|00004340| 65 20 74 68 65 20 78 66 | 64 20 75 74 69 6c 69 74 |e the xf|d utilit|
|00004350| 79 20 74 6f 20 64 69 73 | 70 6c 61 79 20 61 20 66 |y to dis|play a f|
|00004360| 6f 6e 74 0a 74 6f 20 76 | 65 72 69 66 79 20 74 68 |ont.to v|erify th|
|00004370| 61 74 20 69 74 20 63 6f | 6e 74 61 69 6e 73 20 61 |at it co|ntains a|
|00004380| 20 66 75 6c 6c 20 73 65 | 74 20 6f 66 20 63 68 61 | full se|t of cha|
|00004390| 72 61 63 74 65 72 73 2e | 0a 0a 0a 37 2e 32 20 49 |racters.|...7.2 I|
|000043a0| 6e 70 75 74 0a 49 66 20 | 79 6f 75 20 75 73 65 20 |nput.If |you use |
|000043b0| 61 20 6e 61 74 69 6f 6e | 61 6c 20 6b 65 79 62 6f |a nation|al keybo|
|000043c0| 61 72 64 20 28 74 68 61 | 74 20 69 73 20 61 20 6b |ard (tha|t is a k|
|000043d0| 65 79 62 6f 61 72 64 2c | 20 77 68 69 63 68 20 68 |eyboard,| which h|
|000043e0| 61 73 20 64 69 73 74 69 | 6e 63 74 0a 6b 65 79 73 |as disti|nct.keys|
|000043f0| 20 66 6f 72 20 79 6f 75 | 72 20 63 6f 75 6e 74 72 | for you|r countr|
|00004400| 69 65 73 20 73 70 65 63 | 69 61 6c 20 63 68 61 72 |ies spec|ial char|
|00004410| 61 63 74 65 72 73 29 2c | 20 69 6e 70 75 74 74 69 |acters),| inputti|
|00004420| 6e 67 20 61 63 63 65 6e | 74 73 20 69 73 0a 73 74 |ng accen|ts is.st|
|00004430| 72 61 69 67 68 74 20 66 | 6f 72 77 61 72 64 20 61 |raight f|orward a|
|00004440| 6e 64 20 79 6f 75 27 6c | 6c 20 67 65 74 20 74 68 |nd you'l|l get th|
|00004450| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|00004460| 63 68 61 72 61 63 74 65 | 72 73 20 62 79 20 75 73 |characte|rs by us|
|00004470| 69 6e 67 0a 74 68 65 20 | 58 31 31 20 69 6e 70 75 |ing.the |X11 inpu|
|00004480| 74 20 66 75 6e 63 74 69 | 6f 6e 73 2e 0a 0a 53 6f |t functi|ons...So|
|00004490| 6d 65 74 69 6d 65 73 20 | 69 74 20 6d 61 79 20 62 |metimes |it may b|
|000044a0| 65 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 69 |e necess|ary to i|
|000044b0| 6e 70 75 74 20 63 68 61 | 72 61 63 74 65 72 73 20 |nput cha|racters |
|000044c0| 66 6f 72 20 77 68 69 63 | 68 20 74 68 65 72 65 20 |for whic|h there |
|000044d0| 61 72 65 0a 6e 6f 20 6b | 65 79 73 20 6f 6e 20 79 |are.no k|eys on y|
|000044e0| 6f 75 72 20 6b 65 79 62 | 6f 61 72 64 20 28 65 2e |our keyb|oard (e.|
|000044f0| 67 2e 20 69 66 20 79 6f | 75 20 77 61 6e 74 20 74 |g. if yo|u want t|
|00004500| 6f 20 65 6e 74 65 72 20 | 74 68 65 20 47 65 72 6d |o enter |the Germ|
|00004510| 61 6e 20 27 df 27 0a 66 | 72 6f 6d 20 61 20 46 72 |an '.'.f|rom a Fr|
|00004520| 65 6e 63 68 20 6b 65 79 | 62 6f 61 72 64 29 2e 20 |ench key|board). |
|00004530| 20 0a 0a 0a 22 58 31 31 | 52 35 20 61 6e 64 20 58 | ..."X11|R5 and X|
|00004540| 31 31 52 36 20 62 6f 74 | 68 20 68 61 76 65 20 65 |11R6 bot|h have e|
|00004550| 78 74 65 6e 73 69 76 65 | 20 73 75 70 70 6f 72 74 |xtensive| support|
|00004560| 20 66 6f 72 20 69 31 38 | 6e 2c 20 62 75 74 20 64 | for i18|n, but d|
|00004570| 75 65 20 74 6f 20 61 0a | 76 61 72 69 65 74 79 20 |ue to a.|variety |
|00004580| 6f 66 20 66 61 63 74 6f | 72 73 20 74 68 65 20 52 |of facto|rs the R|
|00004590| 35 20 69 31 38 6e 20 77 | 61 73 20 6e 6f 74 20 77 |5 i18n w|as not w|
|000045a0| 65 6c 6c 20 75 6e 64 65 | 72 73 74 6f 6f 64 20 6f |ell unde|rstood o|
|000045b0| 72 20 77 69 64 65 6c 79 | 0a 75 73 65 64 2e 20 20 |r widely|.used. |
|000045c0| 4d 61 6e 79 20 70 65 6f | 70 6c 65 20 72 65 73 6f |Many peo|ple reso|
|000045d0| 72 74 65 64 20 74 6f 20 | 61 20 77 6f 72 6b 2d 61 |rted to |a work-a|
|000045e0| 72 6f 75 6e 64 20 61 6e | 64 20 6d 69 67 68 74 20 |round an|d might |
|000045f0| 68 61 76 65 20 62 65 65 | 6e 0a 64 69 73 61 70 70 |have bee|n.disapp|
|00004600| 6f 69 6e 74 65 64 20 77 | 68 65 6e 20 52 36 20 64 |ointed w|hen R6 d|
|00004610| 69 64 20 6e 6f 74 20 69 | 6e 63 6c 75 64 65 20 74 |id not i|nclude t|
|00004620| 68 69 73 20 66 65 61 74 | 75 72 65 2e 20 20 49 74 |his feat|ure. It|
|00004630| 20 69 73 20 69 6d 70 6f | 72 74 61 6e 74 0a 74 6f | is impo|rtant.to|
|00004640| 20 72 65 63 6f 67 6e 69 | 7a 65 20 74 68 61 74 20 | recogni|ze that |
|00004650| 74 68 65 20 63 6f 72 72 | 65 63 74 20 75 73 65 20 |the corr|ect use |
|00004660| 6f 66 20 52 35 20 61 6e | 64 20 52 36 20 69 31 38 |of R5 an|d R6 i18|
|00004670| 6e 20 66 65 61 74 75 72 | 65 73 20 77 69 6c 6c 0a |n featur|es will.|
|00004680| 65 6e 73 75 72 65 20 6d | 61 78 69 6d 75 6d 20 70 |ensure m|aximum p|
|00004690| 6f 72 74 61 62 69 6c 69 | 74 79 20 6f 66 20 79 6f |ortabili|ty of yo|
|000046a0| 75 72 20 70 72 6f 67 72 | 61 6d 2e 22 20 5b 58 20 |ur progr|am." [X |
|000046b0| 43 6f 6e 73 6f 72 74 69 | 75 6d 27 73 20 76 69 65 |Consorti|um's vie|
|000046c0| 77 5d 0a 0a 55 6e 66 6f | 72 74 75 6e 61 74 65 6c |w]..Unfo|rtunatel|
|000046d0| 79 2c 20 6e 6f 74 20 65 | 76 65 6e 20 74 68 65 20 |y, not e|ven the |
|000046e0| 78 74 65 72 6d 20 74 65 | 72 6d 69 6e 61 6c 20 65 |xterm te|rminal e|
|000046f0| 6d 75 6c 61 74 6f 72 20 | 73 75 70 70 6c 69 65 64 |mulator |supplied|
|00004700| 20 77 69 74 68 20 74 68 | 65 0a 58 31 31 52 36 20 | with th|e.X11R6 |
|00004710| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 62 79 20 |distribu|tion by |
|00004720| 74 68 65 20 58 20 43 6f | 6e 73 6f 72 74 69 75 6d |the X Co|nsortium|
|00004730| 20 73 75 70 70 6f 72 74 | 73 20 74 68 69 73 20 69 | support|s this i|
|00004740| 6e 70 75 74 20 6d 65 74 | 68 6f 64 0a 6d 65 63 68 |nput met|hod.mech|
|00004750| 61 6e 69 73 6d 2e 20 20 | 41 73 20 6f 66 20 52 36 |anism. |As of R6|
|00004760| 2e 31 2c 20 78 74 65 72 | 6d 20 73 75 70 70 6f 72 |.1, xter|m suppor|
|00004770| 74 73 20 74 68 65 20 6e | 65 77 20 69 6e 70 75 74 |ts the n|ew input|
|00004780| 20 6d 65 74 68 6f 64 73 | 2c 20 73 6f 20 79 6f 75 | methods|, so you|
|00004790| 0a 61 72 65 20 73 74 72 | 6f 6e 67 6c 79 20 65 6e |.are str|ongly en|
|000047a0| 63 6f 75 72 61 67 65 64 | 20 74 6f 20 75 70 67 72 |couraged| to upgr|
|000047b0| 61 64 65 20 61 6e 64 20 | 74 61 6b 65 20 61 64 76 |ade and |take adv|
|000047c0| 61 6e 74 61 67 65 20 6f | 66 20 74 68 69 73 20 6e |antage o|f this n|
|000047d0| 65 77 0a 66 65 61 74 75 | 72 65 2e 20 20 54 68 65 |ew.featu|re. The|
|000047e0| 20 6c 61 63 6b 20 6f 66 | 20 63 6f 64 65 20 73 61 | lack of| code sa|
|000047f0| 6d 70 6c 65 73 20 28 61 | 6e 64 20 73 75 70 70 6f |mples (a|nd suppo|
|00004800| 72 74 20 66 6f 72 20 74 | 68 69 73 20 66 65 61 74 |rt for t|his feat|
|00004810| 75 72 65 20 69 6e 0a 73 | 6f 6d 65 20 6e 6f 6e 2d |ure in.s|ome non-|
|00004820| 65 73 73 65 6e 74 69 61 | 6c 2c 20 62 75 74 20 77 |essentia|l, but w|
|00004830| 69 64 65 6c 79 20 75 73 | 65 64 20 58 31 31 20 70 |idely us|ed X11 p|
|00004840| 61 72 74 73 29 20 6d 61 | 79 20 68 61 76 65 20 63 |arts) ma|y have c|
|00004850| 6f 6e 74 72 69 62 75 74 | 65 64 20 74 6f 0a 61 20 |ontribut|ed to.a |
|00004860| 73 69 74 75 61 74 69 6f | 6e 20 77 68 65 72 65 20 |situatio|n where |
|00004870| 66 65 77 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |few appl|ications|
|00004880| 20 73 75 70 70 6f 72 74 | 20 74 68 65 20 69 6e 70 | support| the inp|
|00004890| 75 74 20 6d 65 74 68 6f | 64 73 20 61 76 61 69 6c |ut metho|ds avail|
|000048a0| 61 62 6c 65 0a 69 6e 20 | 52 36 2e 20 20 48 6f 70 |able.in |R6. Hop|
|000048b0| 65 66 75 6c 6c 79 2c 20 | 74 68 69 73 20 73 69 74 |efully, |this sit|
|000048c0| 75 61 74 69 6f 6e 20 77 | 69 6c 6c 20 62 65 20 72 |uation w|ill be r|
|000048d0| 65 63 74 69 66 69 65 64 | 20 77 69 74 68 20 74 68 |ectified| with th|
|000048e0| 65 20 72 65 6c 65 61 73 | 65 0a 6f 66 20 52 36 2e |e releas|e.of R6.|
|000048f0| 31 0a 0a 58 31 31 20 52 | 35 20 61 6e 64 20 52 36 |1..X11 R|5 and R6|
|00004900| 20 73 75 70 70 6f 72 74 | 20 69 6e 70 75 74 20 6d | support| input m|
|00004910| 65 74 68 6f 64 73 20 66 | 6f 72 20 65 6e 74 65 72 |ethods f|or enter|
|00004920| 69 6e 67 20 6e 6f 6e 2d | 41 53 43 49 49 2c 20 61 |ing non-|ASCII, a|
|00004930| 6e 64 0a 64 69 73 70 6c | 61 79 69 6e 67 20 61 6e |nd.displ|aying an|
|00004940| 64 20 63 6f 6e 66 69 67 | 75 72 69 6e 67 20 74 65 |d config|uring te|
|00004950| 78 74 2c 20 6d 65 6e 75 | 73 20 65 74 63 2e 20 66 |xt, menu|s etc. f|
|00004960| 6f 72 20 61 20 77 69 64 | 65 20 76 61 72 69 65 74 |or a wid|e variet|
|00004970| 79 20 6f 66 0a 6c 61 6e | 67 75 61 67 65 73 2e 20 |y of.lan|guages. |
|00004980| 20 54 68 69 73 20 69 6e | 70 75 74 20 6d 65 74 68 | This in|put meth|
|00004990| 6f 64 20 68 61 73 20 74 | 6f 20 62 65 20 69 6e 73 |od has t|o be ins|
|000049a0| 74 61 6c 6c 65 64 20 62 | 79 20 74 68 65 20 61 70 |talled b|y the ap|
|000049b0| 70 6c 69 63 61 74 69 6f | 6e 0a 62 79 20 63 61 6c |plicatio|n.by cal|
|000049c0| 6c 73 20 74 6f 20 74 68 | 65 20 58 6c 69 62 20 6c |ls to th|e Xlib l|
|000049d0| 69 62 72 61 72 79 20 28 | 6f 72 20 61 6e 20 58 74 |ibrary (|or an Xt|
|000049e0| 20 74 6f 6f 6c 6b 69 74 | 20 63 61 6c 6c 29 2e 0a | toolkit| call)..|
|000049f0| 0a 5b 55 6e 64 65 72 20 | 58 31 31 52 35 2c 20 73 |.[Under |X11R5, s|
|00004a00| 6f 6d 65 20 58 20 73 65 | 72 76 65 72 73 20 28 6e |ome X se|rvers (n|
|00004a10| 6f 74 61 62 6c 79 20 74 | 68 65 20 58 73 75 6e 20 |otably t|he Xsun |
|00004a20| 73 65 72 76 65 72 29 20 | 77 69 6c 6c 20 6c 65 74 |server) |will let|
|00004a30| 20 79 6f 75 0a 65 6e 74 | 65 72 20 49 53 4f 20 63 | you.ent|er ISO c|
|00004a40| 68 61 72 61 63 74 65 72 | 73 20 62 79 20 73 75 70 |haracter|s by sup|
|00004a50| 70 6c 79 69 6e 67 20 61 | 20 62 75 69 6c 74 2d 69 |plying a| built-i|
|00004a60| 6e 20 65 73 63 61 70 65 | 20 6d 65 63 68 61 6e 69 |n escape| mechani|
|00004a70| 73 6d 2c 20 69 66 20 6e | 6f 0a 6b 65 79 73 20 66 |sm, if n|o.keys f|
|00004a80| 6f 72 20 74 68 65 73 65 | 20 63 68 61 72 61 63 74 |or these| charact|
|00004a90| 65 72 73 20 61 72 65 20 | 6f 6e 20 79 6f 75 72 20 |ers are |on your |
|00004aa0| 6b 65 79 62 6f 61 72 64 | 2c 20 61 6e 64 20 77 69 |keyboard|, and wi|
|00004ab0| 6c 6c 20 70 61 73 73 20 | 61 6c 6f 6e 67 0a 61 6e |ll pass |along.an|
|00004ac0| 64 20 64 69 73 70 6c 61 | 79 20 49 53 4f 20 38 38 |d displa|y ISO 88|
|00004ad0| 35 39 2d 31 2e 20 20 54 | 68 69 73 20 68 61 63 6b |59-1. T|his hack|
|00004ae0| 20 6f 62 76 69 61 74 65 | 64 20 74 68 65 20 6e 65 | obviate|d the ne|
|00004af0| 65 64 20 74 6f 20 69 6e | 73 74 61 6c 6c 20 61 6e |ed to in|stall an|
|00004b00| 0a 69 6e 70 75 74 20 6d | 65 74 68 6f 64 2c 20 62 |.input m|ethod, b|
|00004b10| 75 74 20 77 61 73 20 6c | 65 73 73 20 66 6c 65 78 |ut was l|ess flex|
|00004b20| 69 62 6c 65 2e 5d 20 20 | 0a 0a 0a 49 66 20 79 6f |ible.] |...If yo|
|00004b30| 75 20 61 72 65 20 75 73 | 69 6e 67 20 61 20 74 6f |u are us|ing a to|
|00004b40| 6f 6c 6b 69 74 2c 20 69 | 74 20 69 73 20 71 75 69 |olkit, i|t is qui|
|00004b50| 74 65 20 73 69 6d 70 6c | 65 20 74 6f 20 73 75 70 |te simpl|e to sup|
|00004b60| 70 6f 72 74 20 6c 6f 63 | 61 6c 69 7a 61 74 69 6f |port loc|alizatio|
|00004b70| 6e 0a 6f 66 20 79 6f 75 | 72 20 58 31 31 20 63 6f |n.of you|r X11 co|
|00004b80| 64 65 3a 20 0a 49 66 20 | 79 6f 75 27 72 65 20 75 |de: .If |you're u|
|00004b90| 73 69 6e 67 20 61 20 74 | 6f 6f 6c 6b 69 74 20 2d |sing a t|oolkit -|
|00004ba0| 2d 20 58 74 20 61 6e 64 | 20 61 20 77 69 64 67 65 |- Xt and| a widge|
|00004bb0| 74 20 73 65 74 20 6c 69 | 6b 65 20 4d 6f 74 69 66 |t set li|ke Motif|
|00004bc0| 20 6f 72 20 52 36 20 58 | 61 77 20 2d 2d 0a 79 6f | or R6 X|aw --.yo|
|00004bd0| 75 20 6e 65 65 64 20 6f | 6e 6c 79 20 61 64 64 20 |u need o|nly add |
|00004be0| 61 20 73 69 6e 67 6c 65 | 20 6c 69 6e 65 20 6f 66 |a single| line of|
|00004bf0| 20 63 6f 64 65 20 74 6f | 20 79 6f 75 72 20 73 6f | code to| your so|
|00004c00| 75 72 63 65 2e 20 42 65 | 66 6f 72 65 20 61 6e 79 |urce. Be|fore any|
|00004c10| 20 6f 74 68 65 72 20 0a | 63 61 6c 6c 73 20 74 6f | other .|calls to|
|00004c20| 20 58 74 2c 20 61 64 64 | 20 61 20 63 61 6c 6c 20 | Xt, add| a call |
|00004c30| 74 6f 20 58 74 53 65 74 | 4c 61 6e 67 75 61 67 65 |to XtSet|Language|
|00004c40| 50 72 6f 63 2c 20 65 2e | 67 2e 3a 0a 20 0a 20 20 |Proc, e.|g.:. . |
|00004c50| 20 20 69 6e 74 20 6d 61 | 69 6e 20 28 69 6e 74 20 | int ma|in (int |
|00004c60| 61 72 67 63 2c 20 63 68 | 61 72 2a 2a 20 61 72 67 |argc, ch|ar** arg|
|00004c70| 76 29 0a 20 20 20 20 7b | 0a 20 20 20 20 20 20 20 |v). {|. |
|00004c80| 20 2e 2e 2e 0a 20 20 20 | 20 20 20 20 20 58 74 53 | .... | XtS|
|00004c90| 65 74 4c 61 6e 67 75 61 | 67 65 50 72 6f 63 20 28 |etLangua|geProc (|
|00004ca0| 4e 55 4c 4c 2c 20 4e 55 | 4c 4c 2c 20 4e 55 4c 4c |NULL, NU|LL, NULL|
|00004cb0| 29 3b 0a 20 20 20 20 20 | 20 20 20 74 6f 70 20 3d |);. | top =|
|00004cc0| 20 58 74 41 70 70 49 6e | 69 74 69 61 6c 69 7a 65 | XtAppIn|itialize|
|00004cd0| 20 28 20 2e 2e 2e 20 29 | 3b 0a 20 20 20 20 20 20 | ( ... )|;. |
|00004ce0| 20 20 2e 2e 2e 0a 20 20 | 20 20 7d 0a 0a 54 68 65 | .... | }..The|
|00004cf0| 20 4c 41 4e 47 20 61 6e | 64 20 4c 43 5f 78 78 78 | LANG an|d LC_xxx|
|00004d00| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|00004d10| 69 61 62 6c 65 73 20 28 | 73 65 65 20 73 65 63 74 |iables (|see sect|
|00004d20| 69 6f 6e 20 33 29 20 77 | 69 6c 6c 20 74 68 65 6e |ion 3) w|ill then|
|00004d30| 20 62 65 0a 75 73 65 64 | 20 74 6f 20 64 65 74 65 | be.used| to dete|
|00004d40| 72 6d 69 6e 65 20 74 68 | 65 20 27 69 6e 70 75 74 |rmine th|e 'input|
|00004d50| 20 6d 65 74 68 6f 64 27 | 20 66 6f 72 20 74 68 69 | method'| for thi|
|00004d60| 73 20 58 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |s X appl|ication.|
|00004d70| 20 20 54 68 69 73 0a 69 | 6e 70 75 74 20 6d 65 74 | This.i|nput met|
|00004d80| 68 6f 64 20 69 73 20 72 | 65 73 70 6f 6e 73 69 62 |hod is r|esponsib|
|00004d90| 6c 65 20 66 6f 72 20 6d | 61 6e 61 67 69 6e 67 20 |le for m|anaging |
|00004da0| 43 4f 4d 50 4f 53 45 20 | 63 68 61 72 61 63 74 65 |COMPOSE |characte|
|00004db0| 72 20 73 65 71 75 65 6e | 63 65 73 0a 6f 72 20 61 |r sequen|ces.or a|
|00004dc0| 6e 79 20 6f 74 68 65 72 | 20 69 6e 70 75 74 20 6d |ny other| input m|
|00004dd0| 65 63 68 61 6e 69 73 6d | 20 66 6f 72 20 74 68 69 |echanism| for thi|
|00004de0| 73 20 70 61 72 74 69 63 | 75 6c 61 72 20 69 6d 70 |s partic|ular imp|
|00004df0| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 2e 20 20 41 6c |lementat|ion. Al|
|00004e00| 73 6f 0a 73 65 65 20 73 | 65 63 74 69 6f 6e 20 39 |so.see s|ection 9|
|00004e10| 20 6f 66 20 66 74 70 3a | 2f 2f 66 74 70 2e 76 6c | of ftp:|//ftp.vl|
|00004e20| 73 69 76 69 65 2e 74 75 | 77 69 65 6e 2e 61 63 2e |sivie.tu|wien.ac.|
|00004e30| 61 74 2f 70 75 62 2f 38 | 62 69 74 2f 46 41 51 2d |at/pub/8|bit/FAQ-|
|00004e40| 49 53 4f 2d 38 38 35 39 | 2d 31 2c 0a 74 68 65 20 |ISO-8859|-1,.the |
|00004e50| 46 41 51 20 6f 6e 20 49 | 53 4f 20 38 38 35 39 2d |FAQ on I|SO 8859-|
|00004e60| 31 20 75 73 61 67 65 2e | 0a 0a 0a 37 2e 33 20 54 |1 usage.|...7.3 T|
|00004e70| 6f 6f 6c 6b 69 74 73 2c | 20 57 69 64 67 65 74 73 |oolkits,| Widgets|
|00004e80| 2c 20 61 6e 64 20 49 31 | 38 4e 0a 54 68 65 20 70 |, and I1|8N.The p|
|00004e90| 72 65 66 65 72 72 65 64 | 20 77 61 79 20 6f 66 20 |referred| way of |
|00004ea0| 69 6e 70 75 74 69 6e 67 | 20 6e 61 74 69 6f 6e 61 |inputing| nationa|
|00004eb0| 6c 20 63 68 61 72 61 63 | 74 65 72 73 20 77 68 65 |l charac|ters whe|
|00004ec0| 6e 20 61 20 6e 61 74 69 | 6f 6e 61 6c 0a 6b 65 79 |n a nati|onal.key|
|00004ed0| 62 6f 61 72 64 20 69 73 | 20 6e 6f 74 20 61 76 61 |board is| not ava|
|00004ee0| 69 6c 61 62 6c 65 20 69 | 73 20 6f 6e 65 2f 73 65 |ilable i|s one/se|
|00004ef0| 76 65 72 61 6c 20 69 6e | 70 75 74 20 6d 65 74 68 |veral in|put meth|
|00004f00| 6f 64 73 2e 20 20 54 68 | 65 73 65 20 69 6e 70 75 |ods. Th|ese inpu|
|00004f10| 74 0a 6d 65 74 68 6f 64 | 73 20 77 69 6c 6c 20 74 |t.method|s will t|
|00004f20| 68 65 6e 20 73 75 70 70 | 6f 72 74 20 76 61 72 69 |hen supp|ort vari|
|00004f30| 6f 75 73 20 6b 69 6e 64 | 73 20 6f 66 20 63 6f 6d |ous kind|s of com|
|00004f40| 70 6f 73 65 20 73 65 71 | 75 65 6e 63 65 73 20 74 |pose seq|uences t|
|00004f50| 6f 20 65 6e 74 65 72 0a | 6e 61 74 69 6f 6e 61 6c |o enter.|national|
|00004f60| 20 63 68 61 72 61 63 74 | 65 72 73 2e 0a 0a 54 68 | charact|ers...Th|
|00004f70| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 76 61 |e enviro|nment va|
|00004f80| 72 69 61 62 6c 65 73 20 | 4c 41 4e 47 20 61 6e 64 |riables |LANG and|
|00004f90| 2f 6f 72 20 4c 43 5f 78 | 78 78 20 73 65 6c 65 63 |/or LC_x|xx selec|
|00004fa0| 74 20 74 68 65 20 6c 61 | 6e 67 75 61 67 65 20 66 |t the la|nguage f|
|00004fb0| 6f 72 0a 74 68 65 20 49 | 6e 70 75 74 20 4d 65 74 |or.the I|nput Met|
|00004fc0| 68 6f 64 20 28 49 4d 29 | 2c 20 62 75 74 20 69 66 |hod (IM)|, but if|
|00004fd0| 20 73 65 76 65 72 61 6c | 20 69 6e 70 75 74 20 6d | several| input m|
|00004fe0| 65 74 68 6f 64 73 20 65 | 78 69 73 74 2c 20 74 68 |ethods e|xist, th|
|00004ff0| 65 0a 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 76 61 |e.enviro|nment va|
|00005000| 72 69 61 62 6c 65 20 58 | 4d 4f 44 49 46 49 45 52 |riable X|MODIFIER|
|00005010| 53 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |S can be| used to|
|00005020| 20 73 65 6c 65 63 74 20 | 61 20 73 70 65 63 69 66 | select |a specif|
|00005030| 69 63 20 69 6e 70 75 74 | 0a 6d 65 74 68 6f 64 2e |ic input|.method.|
|00005040| 0a 0a 58 6c 69 62 2c 20 | 58 74 20 61 6e 64 20 28 |..Xlib, |Xt and (|
|00005050| 70 61 72 74 69 61 6c 6c | 79 29 20 58 61 77 20 73 |partiall|y) Xaw s|
|00005060| 75 70 70 6f 72 74 20 49 | 4d 73 2e 20 20 54 68 75 |upport I|Ms. Thu|
|00005070| 73 2c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |s, appli|cations |
|00005080| 77 72 69 74 74 65 6e 0a | 77 69 74 68 20 58 6c 69 |written.|with Xli|
|00005090| 62 20 6f 72 20 58 74 20 | 63 61 6e 20 73 75 70 70 |b or Xt |can supp|
|000050a0| 6f 72 74 20 49 4d 73 20 | 28 73 65 65 20 73 65 63 |ort IMs |(see sec|
|000050b0| 74 69 6f 6e 20 37 2e 32 | 20 6f 6e 20 68 6f 77 20 |tion 7.2| on how |
|000050c0| 74 6f 20 69 6e 73 74 61 | 6c 6c 0a 69 6e 70 75 74 |to insta|ll.input|
|000050d0| 20 6d 65 74 68 6f 64 73 | 20 75 6e 64 65 72 20 58 | methods| under X|
|000050e0| 74 29 2e 0a 0a 4d 6f 74 | 69 66 20 31 2e 32 20 20 |t)...Mot|if 1.2 |
|000050f0| 6f 72 20 67 72 65 61 74 | 65 72 20 61 75 74 6f 6d |or great|er autom|
|00005100| 61 74 69 63 61 6c 6c 79 | 20 75 73 65 73 20 74 68 |atically| uses th|
|00005110| 65 20 52 35 2f 52 36 20 | 69 6e 70 75 74 20 6d 65 |e R5/R6 |input me|
|00005120| 74 68 6f 64 20 41 50 49 | 73 2e 0a 54 68 75 73 20 |thod API|s..Thus |
|00005130| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 75 73 69 |applicat|ions usi|
|00005140| 6e 67 20 4d 6f 74 69 66 | 20 31 2e 32 2b 20 63 61 |ng Motif| 1.2+ ca|
|00005150| 6e 20 62 65 20 6d 61 64 | 65 20 74 6f 20 73 75 70 |n be mad|e to sup|
|00005160| 70 6f 72 74 20 49 4d 73 | 2e 0a 53 65 76 65 72 61 |port IMs|..Severa|
|00005170| 6c 20 4d 6f 74 69 66 20 | 31 2e 5b 30 31 5d 20 76 |l Motif |1.[01] v|
|00005180| 65 72 73 69 6f 6e 73 20 | 61 6c 73 6f 20 68 61 64 |ersions |also had|
|00005190| 20 73 69 6d 69 6c 61 72 | 20 66 75 6e 63 74 69 6f | similar| functio|
|000051a0| 6e 61 6c 69 74 79 20 61 | 64 64 65 64 20 74 6f 0a |nality a|dded to.|
|000051b0| 74 68 65 6d 20 62 79 20 | 74 68 65 20 72 65 73 70 |them by |the resp|
|000051c0| 65 63 74 69 76 65 20 76 | 65 6e 64 6f 72 73 2c 20 |ective v|endors, |
|000051d0| 62 75 74 20 74 68 65 73 | 65 20 65 78 74 65 6e 73 |but thes|e extens|
|000051e0| 69 6f 6e 73 20 61 72 65 | 0a 76 65 6e 64 6f 72 2d |ions are|.vendor-|
|000051f0| 73 70 65 63 69 66 69 63 | 20 61 6e 64 20 6e 6f 74 |specific| and not|
|00005200| 20 70 6f 72 74 61 62 6c | 65 2e 0a 0a 58 61 77 20 | portabl|e...Xaw |
|00005210| 69 31 38 6e 20 69 73 20 | 62 61 73 65 64 20 75 70 |i18n is |based up|
|00005220| 6f 6e 20 58 31 31 52 35 | 20 69 31 38 6e 2c 20 6e |on X11R5| i18n, n|
|00005230| 6f 74 20 6f 6e 20 52 36 | 2e 20 20 54 68 75 73 2c |ot on R6|. Thus,|
|00005240| 20 69 74 20 73 75 70 70 | 6f 72 74 73 20 52 35 0a | it supp|orts R5.|
|00005250| 69 6e 70 75 74 20 6d 65 | 74 68 6f 64 73 2e 20 20 |input me|thods. |
|00005260| 52 36 20 61 64 64 65 64 | 20 4f 55 54 50 55 54 20 |R6 added| OUTPUT |
|00005270| 4d 45 54 48 4f 44 53 20 | 77 68 69 63 68 20 61 72 |METHODS |which ar|
|00005280| 65 20 67 6f 6f 64 20 66 | 6f 72 20 6d 61 69 6e 6c |e good f|or mainl|
|00005290| 79 0a 52 2d 74 6f 2d 4c | 20 6c 61 6e 67 75 61 67 |y.R-to-L| languag|
|000052a0| 65 73 2c 20 61 6e 64 20 | 61 20 66 65 77 20 6e 65 |es, and |a few ne|
|000052b0| 77 20 49 4e 50 55 54 20 | 4d 45 54 48 4f 44 53 20 |w INPUT |METHODS |
|000052c0| 28 69 6e 2d 74 68 65 2d | 73 70 6f 74 20 61 6e 64 |(in-the-|spot and|
|000052d0| 20 49 20 74 68 69 6e 6b | 0a 6f 6e 65 20 6f 74 68 | I think|.one oth|
|000052e0| 65 72 29 20 74 68 61 74 | 20 58 61 77 20 6d 69 67 |er) that| Xaw mig|
|000052f0| 68 74 20 6e 6f 74 20 73 | 75 70 70 6f 72 74 2e 20 |ht not s|upport. |
|00005300| 20 58 61 77 20 64 6f 65 | 73 20 73 75 70 70 6f 72 | Xaw doe|s suppor|
|00005310| 74 0a 6f 76 65 72 2d 74 | 68 65 2d 73 70 6f 74 2c |t.over-t|he-spot,|
|00005320| 20 6f 66 66 2d 74 68 65 | 2d 73 70 6f 74 2c 20 61 | off-the|-spot, a|
|00005330| 6e 64 20 72 6f 6f 74 2d | 77 69 6e 64 6f 77 20 63 |nd root-|window c|
|00005340| 6f 6e 76 65 72 73 69 6f | 6e 2e 20 20 54 6f 20 6d |onversio|n. To m|
|00005350| 61 6b 65 20 74 68 69 73 | 0a 77 6f 72 6b 2c 20 79 |ake this|.work, y|
|00005360| 6f 75 20 6d 69 67 68 74 | 20 6e 65 65 64 20 74 6f |ou might| need to|
|00005370| 20 73 65 74 20 22 2a 69 | 6e 74 65 72 6e 61 74 69 | set "*i|nternati|
|00005380| 6f 6e 61 6c 3a 20 54 72 | 75 65 22 20 69 6e 20 79 |onal: Tr|ue" in y|
|00005390| 6f 75 72 20 72 65 73 6f | 75 72 63 65 73 2e 0a 20 |our reso|urces.. |
|000053a0| 0a 0a 46 4f 4f 54 4e 4f | 54 45 3a 20 49 66 20 79 |..FOOTNO|TE: If y|
|000053b0| 6f 75 20 63 61 6e 20 68 | 61 76 65 20 63 6f 6d 6d |ou can h|ave comm|
|000053c0| 65 6e 74 73 2f 63 6f 72 | 72 65 63 74 69 6f 6e 73 |ents/cor|rections|
|000053d0| 20 66 6f 72 20 74 68 69 | 73 20 73 65 63 74 69 6f | for thi|s sectio|
|000053e0| 6e 20 61 6e 64 20 6f 6e | 0a 20 20 20 20 20 20 20 |n and on|. |
|000053f0| 20 20 20 4f 70 65 6e 4c | 6f 6f 6b 2c 20 70 6c 65 | OpenL|ook, ple|
|00005400| 61 73 65 20 6c 65 74 20 | 6d 65 20 6b 6e 6f 77 2e |ase let |me know.|
|00005410| 0a 0a 0a 37 2e 34 20 49 | 31 38 4e 20 75 6e 64 65 |...7.4 I|18N unde|
|00005420| 72 20 58 31 31 52 36 2c | 20 47 65 6e 65 72 61 6c |r X11R6,| General|
|00005430| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 42 61 63 | Informa|tion.Bac|
|00005440| 6b 67 72 6f 75 6e 64 20 | 69 6e 66 6f 72 6d 61 74 |kground |informat|
|00005450| 69 6f 6e 20 66 72 6f 6d | 20 74 68 65 20 58 31 31 |ion from| the X11|
|00005460| 52 36 20 61 6e 6e 6f 75 | 6e 63 65 6d 65 6e 74 3a |R6 annou|ncement:|
|00005470| 0a 49 6e 74 65 72 6e 61 | 74 69 6f 6e 61 6c 69 7a |.Interna|tionaliz|
|00005480| 61 74 69 6f 6e 20 28 61 | 6c 73 6f 20 6b 6e 6f 77 |ation (a|lso know|
|00005490| 6e 20 61 73 20 49 31 38 | 4e 2c 20 74 68 65 72 65 |n as I18|N, there|
|000054a0| 20 62 65 69 6e 67 20 31 | 38 20 6c 65 74 74 65 72 | being 1|8 letter|
|000054b0| 73 20 62 65 74 77 65 65 | 6e 20 74 68 65 0a 69 20 |s betwee|n the.i |
|000054c0| 61 6e 64 20 6e 29 20 6f | 66 20 74 68 65 20 58 20 |and n) o|f the X |
|000054d0| 57 69 6e 64 6f 77 20 53 | 79 73 74 65 6d 2c 20 77 |Window S|ystem, w|
|000054e0| 68 69 63 68 20 77 61 73 | 20 6f 72 69 67 69 6e 61 |hich was| origina|
|000054f0| 6c 6c 79 20 69 6e 74 72 | 6f 64 75 63 65 64 20 69 |lly intr|oduced i|
|00005500| 6e 20 52 65 6c 65 61 73 | 65 0a 35 2c 20 68 61 73 |n Releas|e.5, has|
|00005510| 20 62 65 65 6e 20 73 69 | 67 6e 69 66 69 63 61 6e | been si|gnifican|
|00005520| 74 6c 79 20 69 6d 70 72 | 6f 76 65 64 20 69 6e 20 |tly impr|oved in |
|00005530| 52 36 2e 20 20 54 68 65 | 20 52 36 20 49 31 38 4e |R6. The| R6 I18N|
|00005540| 20 61 72 63 68 69 74 65 | 63 74 75 72 65 20 66 6f | archite|cture fo|
|00005550| 6c 6c 6f 77 73 0a 74 68 | 61 74 20 69 6e 20 52 35 |llows.th|at in R5|
|00005560| 2c 20 62 65 69 6e 67 20 | 62 61 73 65 64 20 6f 6e |, being |based on|
|00005570| 20 74 68 65 20 6c 6f 63 | 61 6c 65 20 6d 6f 64 65 | the loc|ale mode|
|00005580| 6c 20 75 73 65 64 20 69 | 6e 20 41 4e 53 49 20 43 |l used i|n ANSI C|
|00005590| 20 61 6e 64 20 50 4f 53 | 49 58 2c 20 77 69 74 68 | and POS|IX, with|
|000055a0| 0a 6d 6f 73 74 20 6f 66 | 20 74 68 65 20 49 31 38 |.most of| the I18|
|000055b0| 4e 20 63 61 70 61 62 69 | 6c 69 74 79 20 70 72 6f |N capabi|lity pro|
|000055c0| 76 69 64 65 64 20 62 79 | 20 58 6c 69 62 2e 20 20 |vided by| Xlib. |
|000055d0| 52 35 20 69 6e 74 72 6f | 64 75 63 65 64 20 61 20 |R5 intro|duced a |
|000055e0| 66 75 6e 64 61 6d 65 6e | 74 61 6c 0a 66 72 61 6d |fundamen|tal.fram|
|000055f0| 65 77 6f 72 6b 20 66 6f | 72 20 69 6e 74 65 72 6e |ework fo|r intern|
|00005600| 61 74 69 6f 6e 61 6c 69 | 7a 65 64 20 69 6e 70 75 |ationali|zed inpu|
|00005610| 74 20 61 6e 64 20 6f 75 | 74 70 75 74 2e 20 20 49 |t and ou|tput. I|
|00005620| 74 20 63 6f 75 6c 64 20 | 65 6e 61 62 6c 65 20 62 |t could |enable b|
|00005630| 61 73 69 63 0a 6c 6f 63 | 61 6c 69 7a 61 74 69 6f |asic.loc|alizatio|
|00005640| 6e 20 66 6f 72 20 6c 65 | 66 74 2d 74 6f 2d 72 69 |n for le|ft-to-ri|
|00005650| 67 68 74 2c 20 6e 6f 6e | 2d 63 6f 6e 74 65 78 74 |ght, non|-context|
|00005660| 20 73 65 6e 73 69 74 69 | 76 65 2c 20 38 2d 62 69 | sensiti|ve, 8-bi|
|00005670| 74 20 6f 72 20 6d 75 6c | 74 69 2d 62 79 74 65 0a |t or mul|ti-byte.|
|00005680| 63 6f 64 65 73 65 74 20 | 6c 61 6e 67 75 61 67 65 |codeset |language|
|00005690| 73 20 61 6e 64 20 63 75 | 6c 74 75 72 61 6c 20 63 |s and cu|ltural c|
|000056a0| 6f 6e 76 65 6e 74 69 6f | 6e 73 2e 20 20 48 6f 77 |onventio|ns. How|
|000056b0| 65 76 65 72 2c 20 69 74 | 20 64 69 64 20 6e 6f 74 |ever, it| did not|
|000056c0| 20 64 65 61 6c 20 77 69 | 74 68 0a 61 6c 6c 20 70 | deal wi|th.all p|
|000056d0| 6f 73 73 69 62 6c 65 20 | 6c 61 6e 67 75 61 67 65 |ossible |language|
|000056e0| 73 20 61 6e 64 20 63 75 | 6c 74 75 72 61 6c 20 63 |s and cu|ltural c|
|000056f0| 6f 6e 76 65 6e 74 69 6f | 6e 73 2e 20 20 52 36 20 |onventio|ns. R6 |
|00005700| 61 6c 73 6f 20 64 6f 65 | 73 20 6e 6f 74 20 63 6f |also doe|s not co|
|00005710| 76 65 72 20 61 6c 6c 0a | 70 6f 73 73 69 62 6c 65 |ver all.|possible|
|00005720| 20 6c 61 6e 67 75 61 67 | 65 73 20 61 6e 64 20 63 | languag|es and c|
|00005730| 75 6c 74 75 72 61 6c 20 | 63 6f 6e 76 65 6e 74 69 |ultural |conventi|
|00005740| 6f 6e 73 2c 20 62 75 74 | 20 52 36 20 63 6f 6e 74 |ons, but| R6 cont|
|00005750| 61 69 6e 73 20 73 75 62 | 73 74 61 6e 74 69 61 6c |ains sub|stantial|
|00005760| 20 6e 65 77 0a 58 6c 69 | 62 20 69 6e 74 65 72 66 | new.Xli|b interf|
|00005770| 61 63 65 73 20 74 6f 20 | 73 75 70 70 6f 72 74 20 |aces to |support |
|00005780| 49 31 38 4e 20 65 6e 68 | 61 6e 63 65 6d 65 6e 74 |I18N enh|ancement|
|00005790| 73 2c 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 65 |s, in or|der to e|
|000057a0| 6e 61 62 6c 65 20 61 64 | 64 69 74 69 6f 6e 61 6c |nable ad|ditional|
|000057b0| 0a 6c 61 6e 67 75 61 67 | 65 20 73 75 70 70 6f 72 |.languag|e suppor|
|000057c0| 74 20 61 6e 64 20 6d 6f | 72 65 20 70 72 61 63 74 |t and mo|re pract|
|000057d0| 69 63 61 6c 20 6c 6f 63 | 61 6c 69 7a 61 74 69 6f |ical loc|alizatio|
|000057e0| 6e 2e 0a 0a 54 68 65 20 | 61 64 64 69 74 69 6f 6e |n...The |addition|
|000057f0| 61 6c 20 73 75 70 70 6f | 72 74 20 69 73 20 6d 61 |al suppo|rt is ma|
|00005800| 69 6e 6c 79 20 69 6e 20 | 74 68 65 20 61 72 65 61 |inly in |the area|
|00005810| 20 6f 66 20 74 65 78 74 | 20 64 69 73 70 6c 61 79 | of text| display|
|00005820| 2e 20 20 49 6e 20 6f 72 | 64 65 72 20 74 6f 0a 73 |. In or|der to.s|
|00005830| 75 70 70 6f 72 74 20 6d | 75 6c 74 69 2d 62 79 74 |upport m|ulti-byt|
|00005840| 65 20 65 6e 63 6f 64 69 | 6e 67 73 2c 20 74 68 65 |e encodi|ngs, the|
|00005850| 20 63 6f 6e 63 65 70 74 | 20 6f 66 20 61 20 46 6f | concept| of a Fo|
|00005860| 6e 74 53 65 74 20 77 61 | 73 20 69 6e 74 72 6f 64 |ntSet wa|s introd|
|00005870| 75 63 65 64 20 69 6e 20 | 52 35 2e 0a 49 6e 20 52 |uced in |R5..In R|
|00005880| 36 2c 20 58 6c 69 62 20 | 65 6e 68 61 6e 63 65 73 |6, Xlib |enhances|
|00005890| 20 74 68 69 73 20 63 6f | 6e 63 65 70 74 20 74 6f | this co|ncept to|
|000058a0| 20 61 20 6d 6f 72 65 20 | 67 65 6e 65 72 61 6c 69 | a more |generali|
|000058b0| 7a 65 64 20 6e 6f 74 69 | 6f 6e 20 6f 66 20 6f 75 |zed noti|on of ou|
|000058c0| 74 70 75 74 0a 6d 65 74 | 68 6f 64 73 20 61 6e 64 |tput.met|hods and|
|000058d0| 20 6f 75 74 70 75 74 20 | 63 6f 6e 74 65 78 74 73 | output |contexts|
|000058e0| 2e 20 20 4a 75 73 74 20 | 61 73 20 69 6e 70 75 74 |. Just |as input|
|000058f0| 20 6d 65 74 68 6f 64 73 | 20 61 6e 64 20 69 6e 70 | methods| and inp|
|00005900| 75 74 20 63 6f 6e 74 65 | 78 74 73 20 73 75 70 2d |ut conte|xts sup-|
|00005910| 0a 70 6f 72 74 20 63 6f | 6d 70 6c 65 78 20 74 65 |.port co|mplex te|
|00005920| 78 74 20 69 6e 70 75 74 | 2c 20 6f 75 74 70 75 74 |xt input|, output|
|00005930| 20 6d 65 74 68 6f 64 73 | 20 61 6e 64 20 6f 75 74 | methods| and out|
|00005940| 70 75 74 20 63 6f 6e 74 | 65 78 74 73 20 73 75 70 |put cont|exts sup|
|00005950| 70 6f 72 74 20 63 6f 6d | 70 6c 65 78 0a 61 6e 64 |port com|plex.and|
|00005960| 20 6d 6f 72 65 20 69 6e | 74 65 6c 6c 69 67 65 6e | more in|telligen|
|00005970| 74 20 74 65 78 74 20 64 | 69 73 70 6c 61 79 2c 20 |t text d|isplay, |
|00005980| 64 65 61 6c 69 6e 67 20 | 6e 6f 74 20 6f 6e 6c 79 |dealing |not only|
|00005990| 20 77 69 74 68 20 6d 75 | 6c 74 69 70 6c 65 20 66 | with mu|ltiple f|
|000059a0| 6f 6e 74 73 20 62 75 74 | 0a 61 6c 73 6f 20 77 69 |onts but|.also wi|
|000059b0| 74 68 20 63 6f 6e 74 65 | 78 74 20 64 65 70 65 6e |th conte|xt depen|
|000059c0| 64 65 6e 63 69 65 73 2e | 20 20 54 68 65 20 72 65 |dencies.| The re|
|000059d0| 73 75 6c 74 20 69 73 20 | 61 20 67 65 6e 65 72 61 |sult is |a genera|
|000059e0| 6c 20 66 72 61 6d 65 77 | 6f 72 6b 20 74 6f 20 65 |l framew|ork to e|
|000059f0| 6e 61 62 6c 65 0a 62 69 | 2d 64 69 72 65 63 74 69 |nable.bi|-directi|
|00005a00| 6f 6e 61 6c 20 74 65 78 | 74 20 61 6e 64 20 63 6f |onal tex|t and co|
|00005a10| 6e 74 65 78 74 20 73 65 | 6e 73 69 74 69 76 65 20 |ntext se|nsitive |
|00005a20| 74 65 78 74 20 64 69 73 | 70 6c 61 79 2e 0a 0a 54 |text dis|play...T|
|00005a30| 68 65 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |he descr|iption o|
|00005a40| 66 20 74 68 65 20 58 31 | 31 52 36 20 69 6e 74 65 |f the X1|1R6 inte|
|00005a50| 72 6e 61 74 69 6f 6e 61 | 6c 69 7a 61 74 69 6f 6e |rnationa|lization|
|00005a60| 20 66 72 61 6d 65 77 6f | 72 6b 20 69 73 0a 61 76 | framewo|rk is.av|
|00005a70| 61 69 6c 61 62 6c 65 20 | 76 69 61 20 61 6e 6f 6e |ailable |via anon|
|00005a80| 79 6d 6f 75 73 20 66 74 | 70 20 66 72 6f 6d 20 66 |ymous ft|p from f|
|00005a90| 74 70 2e 78 2e 6f 72 67 | 20 69 6e 0a 2f 70 75 62 |tp.x.org| in./pub|
|00005aa0| 2f 52 36 75 6e 74 61 72 | 72 65 64 2f 78 63 2f 64 |/R6untar|red/xc/d|
|00005ab0| 6f 63 2f 73 70 65 63 73 | 2f 69 31 38 6e 2e 0a 0a |oc/specs|/i18n...|
|00005ac0| 0a 0a 38 2e 20 53 75 70 | 70 6f 72 74 69 6e 67 20 |..8. Sup|porting |
|00005ad0| 49 31 38 4e 20 4e 65 74 | 77 6f 72 6b 20 50 72 6f |I18N Net|work Pro|
|00005ae0| 74 6f 63 6f 6c 73 0a 38 | 2e 31 20 4d 49 4d 45 0a |tocols.8|.1 MIME.|
|00005af0| 4d 49 4d 45 20 69 73 20 | 73 70 65 63 69 66 69 65 |MIME is |specifie|
|00005b00| 64 20 69 6e 20 52 46 43 | 20 31 35 32 31 20 61 6e |d in RFC| 1521 an|
|00005b10| 64 20 52 46 43 20 31 35 | 32 32 20 77 68 69 63 68 |d RFC 15|22 which|
|00005b20| 20 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 20 66 | are ava|ilable f|
|00005b30| 72 6f 6d 0a 66 74 70 2e | 75 75 2e 6e 65 74 2e 20 |rom.ftp.|uu.net. |
|00005b40| 20 54 68 65 72 65 20 69 | 73 20 61 6c 73 6f 20 61 | There i|s also a|
|00005b50| 20 4d 49 4d 45 20 46 41 | 51 20 77 68 69 63 68 20 | MIME FA|Q which |
|00005b60| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 76 69 61 |is avail|able via|
|00005b70| 20 61 6e 6f 6e 79 6d 6f | 75 73 0a 66 74 70 20 66 | anonymo|us.ftp f|
|00005b80| 72 6f 6d 20 66 74 70 2e | 69 63 73 2e 75 63 69 2e |rom ftp.|ics.uci.|
|00005b90| 65 64 75 20 69 6e 20 2f | 6d 68 2f 63 6f 6e 74 72 |edu in /|mh/contr|
|00005ba0| 69 62 2f 6d 75 6c 74 69 | 6d 65 64 69 61 2f 6d 69 |ib/multi|media/mi|
|00005bb0| 6d 65 2d 66 61 71 2e 74 | 78 74 2e 67 7a 2e 0a 28 |me-faq.t|xt.gz..(|
|00005bc0| 54 68 69 73 20 66 69 6c | 65 20 69 73 20 69 6e 20 |This fil|e is in |
|00005bd0| 63 6f 6d 70 72 65 73 73 | 65 64 20 66 6f 72 6d 61 |compress|ed forma|
|00005be0| 74 2e 20 59 6f 75 20 77 | 69 6c 6c 20 6e 65 65 64 |t. You w|ill need|
|00005bf0| 20 74 68 65 20 47 4e 55 | 20 67 75 6e 7a 69 70 0a | the GNU| gunzip.|
|00005c00| 70 72 6f 67 72 61 6d 20 | 74 6f 20 64 65 63 6f 6d |program |to decom|
|00005c10| 70 72 65 73 73 20 74 68 | 69 73 20 66 69 6c 65 2e |press th|is file.|
|00005c20| 29 0a 0a 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |)..If yo|u want t|
|00005c30| 6f 20 77 72 69 74 65 20 | 61 70 70 6c 69 63 61 74 |o write |applicat|
|00005c40| 69 6f 6e 73 20 77 68 69 | 63 68 20 73 75 70 70 6f |ions whi|ch suppo|
|00005c50| 72 74 20 74 68 65 20 4d | 49 4d 45 20 70 72 6f 74 |rt the M|IME prot|
|00005c60| 6f 63 6f 6c 2c 0a 74 68 | 65 72 65 20 61 72 65 20 |ocol,.th|ere are |
|00005c70| 73 65 76 65 72 61 6c 20 | 6c 69 62 72 61 72 69 65 |several |librarie|
|00005c80| 73 2f 74 6f 6f 6c 73 20 | 77 68 69 63 68 20 63 61 |s/tools |which ca|
|00005c90| 6e 20 65 61 73 65 20 79 | 6f 75 72 20 74 61 73 6b |n ease y|our task|
|00005ca0| 3a 0a 0a 0a 38 2e 31 2e | 31 20 6d 65 74 61 6d 61 |:...8.1.|1 metama|
|00005cb0| 69 6c 0a 53 6f 75 72 63 | 65 20 66 6f 72 20 73 75 |il.Sourc|e for su|
|00005cc0| 70 70 6f 72 74 69 6e 67 | 20 4d 49 4d 45 20 28 74 |pporting| MIME (t|
|00005cd0| 68 65 20 60 6d 65 74 61 | 6d 61 69 6c 27 20 70 61 |he `meta|mail' pa|
|00005ce0| 63 6b 61 67 65 29 20 69 | 6e 20 76 61 72 69 6f 75 |ckage) i|n variou|
|00005cf0| 73 20 6d 61 69 6c 0a 72 | 65 61 64 65 72 73 20 69 |s mail.r|eaders i|
|00005d00| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 76 69 61 20 |s availa|ble via |
|00005d10| 61 6e 6f 6e 79 6d 6f 75 | 73 20 66 74 70 20 66 72 |anonymou|s ftp fr|
|00005d20| 6f 6d 20 74 68 75 6d 70 | 65 72 2e 62 65 6c 6c 63 |om thump|er.bellc|
|00005d30| 6f 72 65 2e 63 6f 6d 20 | 69 6e 0a 2f 70 75 62 2f |ore.com |in./pub/|
|00005d40| 6e 73 62 2e 20 20 54 68 | 69 73 20 64 69 73 74 72 |nsb. Th|is distr|
|00005d50| 69 62 75 74 69 6f 6e 20 | 63 6f 6e 73 69 73 74 73 |ibution |consists|
|00005d60| 20 6f 66 20 73 65 76 65 | 72 61 6c 20 75 74 69 6c | of seve|ral util|
|00005d70| 69 74 69 65 73 2c 20 77 | 68 69 63 68 20 63 61 6e |ities, w|hich can|
|00005d80| 0a 62 65 20 63 61 6c 6c | 65 64 20 62 79 20 4d 49 |.be call|ed by MI|
|00005d90| 4d 45 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ME appli|cations |
|00005da0| 74 6f 20 68 61 6e 64 6c | 65 20 4d 49 4d 45 20 74 |to handl|e MIME t|
|00005db0| 79 70 65 73 2e 0a 0a 0a | 38 2e 31 2e 32 20 4d 49 |ypes....|8.1.2 MI|
|00005dc0| 4d 45 6c 74 0a 41 20 22 | 6c 69 67 68 74 77 65 69 |MElt.A "|lightwei|
|00005dd0| 67 68 74 22 20 4d 49 4d | 45 20 6c 69 62 72 61 72 |ght" MIM|E librar|
|00005de0| 79 20 61 76 61 69 6c 61 | 62 6c 65 20 76 69 61 20 |y availa|ble via |
|00005df0| 61 6e 6f 6e 20 66 74 70 | 20 66 72 6f 6d 0a 6f 73 |anon ftp| from.os|
|00005e00| 6c 6f 6e 65 74 74 2e 6e | 6f 3a 53 6f 66 74 77 61 |lonett.n|o:Softwa|
|00005e10| 72 65 2f 4d 73 44 6f 73 | 2f 43 6f 6d 6d 2f 4f 66 |re/MsDos|/Comm/Of|
|00005e20| 66 6c 69 6e 65 2f 6d 69 | 6d 65 6c 74 58 58 2e 7a |fline/mi|meltXX.z|
|00005e30| 69 70 20 0a 0a 49 74 20 | 69 73 20 73 6f 75 72 63 |ip ..It |is sourc|
|00005e40| 65 20 63 6f 64 65 20 28 | 41 4e 53 49 20 43 29 20 |e code (|ANSI C) |
|00005e50| 70 61 63 6b 61 67 65 64 | 20 61 73 20 61 20 6c 69 |packaged| as a li|
|00005e60| 62 72 61 72 79 20 74 6f | 20 66 61 63 69 6c 69 74 |brary to| facilit|
|00005e70| 61 74 65 0a 63 6f 6e 73 | 74 72 75 63 74 69 6f 6e |ate.cons|truction|
|00005e80| 20 6f 66 20 61 20 6c 69 | 6d 69 74 65 64 20 4d 49 | of a li|mited MI|
|00005e90| 4d 45 20 66 61 63 69 6c | 69 74 79 20 28 6c 69 6d |ME facil|ity (lim|
|00005ea0| 69 74 65 64 20 3d 3d 20 | 68 61 6e 64 6c 69 6e 67 |ited == |handling|
|00005eb0| 20 6f 6e 6c 79 0a 63 68 | 61 72 61 63 74 65 72 2d | only.ch|aracter-|
|00005ec0| 73 65 74 20 61 73 70 65 | 63 74 73 20 6f 66 20 4d |set aspe|cts of M|
|00005ed0| 49 4d 45 2c 20 6e 6f 74 | 20 74 68 65 20 6d 75 6c |IME, not| the mul|
|00005ee0| 74 69 6d 65 64 69 61 2d | 61 73 70 65 63 74 73 29 |timedia-|aspects)|
|00005ef0| 2e 20 20 49 74 0a 69 6e | 63 6c 75 64 65 73 20 68 |. It.in|cludes h|
|00005f00| 6f 6f 6b 73 20 74 6f 20 | 72 65 63 6f 64 65 20 63 |ooks to |recode c|
|00005f10| 68 61 72 61 63 74 65 72 | 20 73 65 74 73 20 69 6e |haracter| sets in|
|00005f20| 74 6f 20 77 68 61 74 65 | 76 65 72 20 73 79 73 74 |to whate|ver syst|
|00005f30| 65 6d 20 79 6f 75 20 61 | 72 65 0a 72 75 6e 6e 69 |em you a|re.runni|
|00005f40| 6e 67 20 6f 66 66 20 28 | 65 2e 67 2e 20 20 69 66 |ng off (|e.g. if|
|00005f50| 20 79 6f 75 20 72 65 61 | 64 20 6d 61 69 6c 20 6f | you rea|d mail o|
|00005f60| 6e 20 61 20 4d 73 44 6f | 73 20 70 6c 61 74 66 6f |n a MsDo|s platfo|
|00005f70| 72 6d 20 75 73 69 6e 67 | 20 43 50 2d 38 35 30 2c |rm using| CP-850,|
|00005f80| 0a 4d 49 4d 45 6c 69 74 | 65 20 6d 61 79 20 62 65 |.MIMElit|e may be|
|00005f90| 20 73 65 74 20 75 70 20 | 73 6f 20 74 68 61 74 20 | set up |so that |
|00005fa0| 51 55 4f 54 45 44 2d 50 | 52 49 4e 54 41 42 4c 45 |QUOTED-P|RINTABLE|
|00005fb0| 20 49 53 4f 20 4c 61 74 | 69 6e 20 31 20 69 73 20 | ISO Lat|in 1 is |
|00005fc0| 72 65 63 6f 64 65 64 0a | 69 6e 74 6f 20 43 50 2d |recoded.|into CP-|
|00005fd0| 38 35 30 20 66 6f 72 20 | 72 65 61 64 69 6e 67 20 |850 for |reading |
|00005fe0| 61 6e 64 20 73 61 76 69 | 6e 67 20 74 6f 20 66 69 |and savi|ng to fi|
|00005ff0| 6c 65 29 2e 0a 20 0a 49 | 74 27 73 20 6d 61 69 6e |le).. .I|t's main|
|00006000| 20 75 73 65 20 69 73 20 | 74 6f 20 70 72 6f 76 69 | use is |to provi|
|00006010| 64 65 20 70 72 6f 67 72 | 61 6d 6d 65 72 73 20 6f |de progr|ammers o|
|00006020| 66 20 73 6f 2d 63 61 6c | 6c 65 64 20 22 6f 66 66 |f so-cal|led "off|
|00006030| 2d 6c 69 6e 65 20 0a 72 | 65 61 64 65 72 73 22 20 |-line .r|eaders" |
|00006040| 28 75 73 65 64 20 62 79 | 20 75 73 65 72 73 20 77 |(used by| users w|
|00006050| 68 6f 20 61 63 63 65 73 | 73 20 49 6e 74 65 72 6e |ho acces|s Intern|
|00006060| 65 74 20 6d 61 69 6c 20 | 74 68 72 6f 75 67 68 20 |et mail |through |
|00006070| 64 69 61 6c 2d 75 70 20 | 0a 73 65 72 76 69 63 65 |dial-up |.service|
|00006080| 20 70 72 6f 76 69 64 65 | 72 73 29 20 77 69 74 68 | provide|rs) with|
|00006090| 20 74 68 65 20 74 6f 6f | 6c 73 20 6e 65 65 64 65 | the too|ls neede|
|000060a0| 64 20 74 6f 20 69 6e 63 | 6c 75 64 65 20 70 72 6f |d to inc|lude pro|
|000060b0| 70 65 72 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |per supp|ort for |
|000060c0| 0a 51 55 4f 54 45 44 2d | 50 52 49 4e 54 41 42 4c |.QUOTED-|PRINTABL|
|000060d0| 45 20 65 6e 63 6f 64 69 | 6e 67 20 69 6e 20 74 68 |E encodi|ng in th|
|000060e0| 65 69 72 20 70 72 6f 64 | 75 63 74 2e 0a 20 0a 54 |eir prod|uct.. .T|
|000060f0| 68 65 20 61 72 63 68 69 | 76 65 20 61 6c 73 6f 20 |he archi|ve also |
|00006100| 63 6f 6e 74 61 69 6e 73 | 20 61 20 63 6f 75 70 6c |contains| a coupl|
|00006110| 65 20 6f 66 20 73 61 6d | 70 6c 65 20 61 70 70 6c |e of sam|ple appl|
|00006120| 69 63 61 74 69 6f 6e 73 | 20 74 68 61 74 20 0a 64 |ications| that .d|
|00006130| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 68 6f 77 20 |emonstra|tes how |
|00006140| 74 68 65 20 6c 69 62 72 | 61 72 79 20 6d 61 79 20 |the libr|ary may |
|00006150| 62 65 20 75 73 65 64 2e | 20 20 55 4e 4d 49 4d 45 |be used.| UNMIME|
|00006160| 20 69 73 20 61 20 73 74 | 61 6e 64 2d 61 6c 6f 6e | is a st|and-alon|
|00006170| 65 20 0a 75 74 69 6c 69 | 74 79 20 74 6f 20 64 65 |e .utili|ty to de|
|00006180| 63 6f 64 65 20 4d 49 4d | 45 2d 65 6e 63 6f 64 65 |code MIM|E-encode|
|00006190| 64 20 6d 65 73 73 61 67 | 65 73 20 28 65 2e 67 2e |d messag|es (e.g.|
|000061a0| 20 69 74 20 77 6f 72 6b | 73 20 6c 69 6b 65 20 55 | it work|s like U|
|000061b0| 55 44 45 43 4f 44 45 0a | 66 6f 72 20 62 69 6e 61 |UDECODE.|for bina|
|000061c0| 72 79 20 66 69 6c 65 73 | 20 77 69 74 68 20 42 41 |ry files| with BA|
|000061d0| 53 45 36 34 20 65 6e 63 | 6f 64 69 6e 67 29 2c 20 |SE64 enc|oding), |
|000061e0| 53 45 4e 44 4d 49 4d 45 | 20 69 73 20 61 20 73 69 |SENDMIME| is a si|
|000061f0| 6d 70 6c 65 20 75 74 69 | 6c 69 74 79 0a 74 6f 20 |mple uti|lity.to |
|00006200| 73 65 6e 64 20 4d 49 4d | 45 2d 65 6e 63 6f 64 65 |send MIM|E-encode|
|00006210| 64 20 6d 65 73 73 61 67 | 65 73 20 69 66 20 79 6f |d messag|es if yo|
|00006220| 75 72 20 73 65 72 76 69 | 63 65 20 70 72 6f 76 69 |ur servi|ce provi|
|00006230| 64 65 72 20 64 6f 65 73 | 6e 27 74 20 68 61 76 65 |der does|n't have|
|00006240| 0a 50 49 4e 45 20 6f 72 | 20 73 69 6d 69 6c 61 72 |.PINE or| similar|
|00006250| 20 74 6f 6f 6c 73 2e 0a | 0a 54 68 65 20 63 75 72 | tools..|.The cur|
|00006260| 72 65 6e 74 20 76 65 72 | 73 69 6f 6e 20 28 32 2e |rent ver|sion (2.|
|00006270| 31 29 20 69 73 20 6c 69 | 6d 69 74 65 64 20 74 6f |1) is li|mited to|
|00006280| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 20 69 | charact|er set i|
|00006290| 73 73 75 65 73 2e 20 20 | 49 20 61 6d 0a 61 62 6f |ssues. |I am.abo|
|000062a0| 75 74 20 74 6f 20 72 65 | 6c 65 61 73 65 20 76 65 |ut to re|lease ve|
|000062b0| 72 73 69 6f 6e 20 32 2e | 32 2c 20 77 68 69 63 68 |rsion 2.|2, which|
|000062c0| 20 77 69 6c 6c 20 73 75 | 70 70 6f 72 74 20 61 64 | will su|pport ad|
|000062d0| 64 69 74 69 6f 6e 61 6c | 20 0a 43 6f 6e 74 65 6e |ditional| .Conten|
|000062e0| 74 2d 54 79 70 65 73 20 | 28 65 2e 67 2e 20 22 61 |t-Types |(e.g. "a|
|000062f0| 70 70 6c 69 63 61 74 69 | 6f 6e 2f 6f 63 74 65 74 |pplicati|on/octet|
|00006300| 2d 73 74 72 65 61 6d 22 | 29 2e 0a 0a 0a 0a 39 2e |-stream"|).....9.|
|00006310| 20 50 72 6f 67 72 61 6d | 6d 69 6e 67 20 69 6e 20 | Program|ming in |
|00006320| 50 72 6f 6c 6f 67 20 0a | 51 75 69 6e 74 75 73 20 |Prolog .|Quintus |
|00006330| 50 72 6f 6c 6f 67 20 61 | 6e 64 20 53 49 43 53 74 |Prolog a|nd SICSt|
|00006340| 75 73 20 50 72 6f 6c 6f | 67 20 61 63 63 65 70 74 |us Prolo|g accept|
|00006350| 73 20 49 53 4f 20 63 68 | 61 72 61 63 74 65 72 73 |s ISO ch|aracters|
|00006360| 20 61 73 20 70 61 72 74 | 20 6f 66 0a 61 74 6f 6d | as part| of.atom|
|00006370| 73 2c 20 73 6f 20 79 6f | 75 20 63 61 6e 20 65 76 |s, so yo|u can ev|
|00006380| 65 6e 20 64 65 66 69 6e | 65 20 67 6f 61 6c 20 6e |en defin|e goal n|
|00006390| 61 6d 65 73 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |ames con|taining |
|000063a0| 61 63 63 65 6e 74 65 64 | 0a 63 68 61 72 61 63 74 |accented|.charact|
|000063b0| 65 72 73 2e 20 20 49 2f | 4f 20 6f 66 20 38 20 62 |ers. I/|O of 8 b|
|000063c0| 69 74 20 63 68 61 72 61 | 63 74 65 72 73 20 69 73 |it chara|cters is|
|000063d0| 20 28 6f 62 76 69 6f 75 | 73 6c 79 29 20 61 6c 73 | (obviou|sly) als|
|000063e0| 6f 20 73 75 70 70 6f 72 | 74 65 64 2e 0a 0a 51 75 |o suppor|ted...Qu|
|000063f0| 69 6e 74 75 73 20 50 72 | 6f 6c 6f 67 20 61 6c 73 |intus Pr|olog als|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.