home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / Perl / Docs / !PerlDocs / Chapter12 / Text
Unknown  |  1997-07-17  |  55.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 28 dd 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |(.......|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 07 29 c1 00 00 00 00 00 | 00 18 00 00 85 70 00 00 |.)......|.....p..|
|00000040| 02 54 90 07 40 25 ff ff | 60 73 ff ff d8 3b 00 00 |.T..@%..|`s...;..|
|00000050| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 07 29 c1 00 |........|.....)..|
|00000060| 07 29 c1 00 07 29 c1 00 | 00 00 00 00 70 65 72 6c |.)...)..|....perl|
|00000070| 6c 6f 63 61 6c 65 20 2d | 20 50 65 72 6c 20 6c 6f |locale -| Perl lo|
|00000080| 63 61 6c 65 05 05 20 68 | 61 6e 64 6c 69 6e 67 20 |cale.. h|andling |
|00000090| 28 69 6e 74 65 72 6e 61 | 74 69 6f 6e 61 6c 69 7a |(interna|tionaliz|
|000000a0| 61 74 69 6f 6e 20 00 00 | 00 70 00 00 a5 48 00 00 |ation ..|.p...H..|
|000000b0| 43 1c 64 02 80 c7 fe ff | a0 15 ff ff d8 3b 00 00 |C.d.....|.....;..|
|000000c0| 61 6e 64 20 6c 6f 63 61 | 6c 69 7a 61 74 69 6f 6e |and loca|lization|
|000000d0| 29 0d 08 05 07 29 c1 00 | 00 00 00 00 07 04 00 00 |)....)..|........|
|000000e0| 08 01 5d 00 08 01 5d 00 | 00 00 00 00 05 00 00 00 |..]...].|........|
|000000f0| 00 48 00 00 a5 30 00 00 | 40 a2 5f 01 e0 3a fe ff |.H...0..|@._..:..|
|00000100| 30 81 fe ff 68 37 00 00 | 44 65 73 63 72 69 70 74 |0...h7..|Descript|
|00000110| 69 6f 6e 0d 08 8c 00 00 | 08 02 5d 00 00 00 00 00 |ion.....|..].....|
|00000120| 00 30 00 00 05 8c 00 00 | 00 00 ef 07 7f e2 fd ff |.0......|........|
|00000130| 5f 11 fe ff 20 22 00 00 | 50 65 72 6c 20 73 75 70 |_... "..|Perl sup|
|00000140| 70 6f 72 74 73 20 6c 61 | 6e 67 75 61 67 65 2d 73 |ports la|nguage-s|
|00000150| 70 65 63 69 66 69 63 20 | 6e 6f 74 69 6f 6e 73 20 |pecific |notions |
|00000160| 6f 66 20 64 61 74 61 20 | 73 75 63 68 20 61 73 20 |of data |such as |
|00000170| 22 69 73 20 74 68 69 73 | 20 61 20 6c 65 74 74 65 |"is this| a lette|
|00000180| 72 22 2c 20 22 77 68 61 | 74 20 69 73 20 74 68 65 |r", "wha|t is the|
|00000190| 20 75 70 70 65 72 63 61 | 73 65 20 65 71 75 69 76 | upperca|se equiv|
|000001a0| 61 6c 65 6e 74 20 6f 66 | 20 00 00 00 00 8c 00 00 |alent of| .......|
|000001b0| 05 88 00 00 00 bc ab 07 | 58 aa fd ff 38 d9 fd ff |........|X...8...|
|000001c0| 20 22 00 00 74 68 69 73 | 20 6c 65 74 74 65 72 22 | "..this| letter"|
|000001d0| 2c 20 61 6e 64 20 22 77 | 68 69 63 68 20 6f 66 20 |, and "w|hich of |
|000001e0| 74 68 65 73 65 20 6c 65 | 74 74 65 72 73 20 63 6f |these le|tters co|
|000001f0| 6d 65 73 20 66 69 72 73 | 74 22 2e 20 20 54 68 65 |mes firs|t". The|
|00000200| 73 65 20 61 72 65 20 69 | 6d 70 6f 72 74 61 6e 74 |se are i|mportant|
|00000210| 20 69 73 73 75 65 73 2c | 20 65 73 70 65 63 69 61 | issues,| especia|
|00000220| 6c 6c 79 20 66 6f 72 20 | 6c 61 6e 67 75 61 67 65 |lly for |language|
|00000230| 73 20 00 00 00 88 00 00 | 85 9c 00 00 00 b0 60 07 |s ......|......`.|
|00000240| 31 72 fd ff 11 a1 fd ff | 20 22 00 00 6f 74 68 65 |1r......| "..othe|
|00000250| 72 20 74 68 61 6e 20 45 | 6e 67 6c 69 73 68 20 2d |r than E|nglish -|
|00000260| 20 62 75 74 20 61 6c 73 | 6f 20 66 6f 72 20 45 6e | but als|o for En|
|00000270| 67 6c 69 73 68 3a 20 69 | 74 20 77 6f 75 6c 64 20 |glish: i|t would |
|00000280| 62 65 20 76 65 72 79 20 | 6e 61 ef 76 65 20 74 6f |be very |na.ve to|
|00000290| 20 74 68 69 6e 6b 20 74 | 68 61 74 20 07 65 72 72 | think t|hat .err|
|000002a0| 0e 03 5d 00 0e 03 5d 00 | 00 00 00 00 41 2d 5a 61 |..]...].|....A-Za|
|000002b0| 2d 7a 08 6e 0e 04 5d 00 | 00 00 00 00 20 64 65 66 |-z.n..].|.... def|
|000002c0| 69 6e 65 73 20 61 6c 6c | 20 74 68 65 20 00 00 00 |ines all| the ...|
|000002d0| 00 9c 00 00 05 88 00 00 | 00 1c bb 07 0a 3a fd ff |........|.....:..|
|000002e0| ea 68 fd ff 20 22 00 00 | 22 6c 65 74 74 65 72 73 |.h.. "..|"letters|
|000002f0| 22 2e 20 50 65 72 6c 20 | 69 73 20 61 6c 73 6f 20 |". Perl |is also |
|00000300| 61 77 61 72 65 20 74 68 | 61 74 20 73 6f 6d 65 20 |aware th|at some |
|00000310| 63 68 61 72 61 63 74 65 | 72 20 6f 74 68 65 72 20 |characte|r other |
|00000320| 74 68 61 6e 20 27 2e 27 | 20 6d 61 79 20 62 65 20 |than '.'| may be |
|00000330| 70 72 65 66 65 72 72 65 | 64 20 61 73 20 61 20 64 |preferre|d as a d|
|00000340| 65 63 69 6d 61 6c 20 70 | 6f 69 6e 74 2c 20 61 6e |ecimal p|oint, an|
|00000350| 64 20 74 68 61 74 20 00 | 00 88 00 00 05 84 00 00 |d that .|........|
|00000360| 00 8c f0 07 e3 01 fd ff | c3 30 fd ff 20 22 00 00 |........|.0.. "..|
|00000370| 6f 75 74 70 75 74 20 64 | 61 74 65 20 72 65 70 72 |output d|ate repr|
|00000380| 65 73 65 6e 74 61 74 69 | 6f 6e 73 20 6d 61 79 20 |esentati|ons may |
|00000390| 62 65 20 6c 61 6e 67 75 | 61 67 65 2d 73 70 65 63 |be langu|age-spec|
|000003a0| 69 66 69 63 2e 20 20 54 | 68 65 20 70 72 6f 63 65 |ific. T|he proce|
|000003b0| 73 73 20 6f 66 20 6d 61 | 6b 69 6e 67 20 61 6e 20 |ss of ma|king an |
|000003c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 61 6b 65 |applicat|ion take|
|000003d0| 20 61 63 63 6f 75 6e 74 | 20 6f 66 20 00 84 00 00 | account| of ....|
|000003e0| 85 bc 00 00 00 94 e2 07 | bc c9 fc ff 9c f8 fc ff |........|........|
|000003f0| 20 22 00 00 69 74 73 20 | 75 73 65 72 73 27 20 70 | "..its |users' p|
|00000400| 72 65 66 65 72 65 6e 63 | 65 73 20 69 6e 20 73 75 |referenc|es in su|
|00000410| 63 68 20 6d 61 74 74 65 | 72 73 20 69 73 20 63 61 |ch matte|rs is ca|
|00000420| 6c 6c 65 64 20 07 7a 61 | 10 05 5d 00 10 05 5d 00 |lled .za|..]...].|
|00000430| 00 00 00 00 69 6e 74 65 | 72 6e 61 74 69 6f 6e 61 |....inte|rnationa|
|00000440| 6c 69 7a 61 74 69 6f 6e | 08 31 30 6e 10 00 00 00 |lization|.10n....|
|00000450| 00 00 00 00 20 28 6f 66 | 74 65 6e 20 61 62 62 72 |.... (of|ten abbr|
|00000460| 65 76 69 61 74 65 64 20 | 61 73 20 07 10 06 5d 00 |eviated |as ...].|
|00000470| 10 06 5d 00 00 00 00 00 | 69 31 38 6e 08 66 69 63 |..].....|i18n.fic|
|00000480| 10 00 00 00 00 00 00 00 | 29 3b 20 74 65 6c 6c 69 |........|); telli|
|00000490| 6e 67 20 73 75 63 68 20 | 00 bc 00 00 a5 a4 00 00 |ng such |........|
|000004a0| 40 e4 18 06 95 91 fc ff | 75 c0 fc ff 20 22 00 00 |@.......|u... "..|
|000004b0| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 61 |an appli|cation a|
|000004c0| 62 6f 75 74 20 61 20 70 | 61 72 74 69 63 75 6c 61 |bout a p|articula|
|000004d0| 72 20 73 65 74 20 6f 66 | 20 70 72 65 66 65 72 65 |r set of| prefere|
|000004e0| 6e 63 65 73 20 69 73 20 | 6b 6e 6f 77 6e 20 61 73 |nces is |known as|
|000004f0| 20 07 6c 6c 10 07 5d 00 | 10 07 5d 00 00 00 00 00 | .ll..].|..].....|
|00000500| 6c 6f 63 61 6c 69 7a 61 | 74 69 6f 6e 08 6f 6e 65 |localiza|tion.one|
|00000510| 10 00 00 00 00 00 00 00 | 20 28 07 65 10 08 5d 00 |........| (.e..].|
|00000520| 10 08 5d 00 00 00 00 00 | 6c 31 30 6e 08 6e 64 20 |..].....|l10n.nd |
|00000530| 10 00 00 00 00 00 00 00 | 29 2e 0d 00 00 a4 00 00 |........|).......|
|00000540| 05 80 00 00 00 14 c9 07 | be 22 fc ff 9e 51 fc ff |........|."...Q..|
|00000550| 20 22 00 00 50 65 72 6c | 20 63 61 6e 20 75 6e 64 | "..Perl| can und|
|00000560| 65 72 73 74 61 6e 64 20 | 6c 61 6e 67 75 61 67 65 |erstand |language|
|00000570| 2d 73 70 65 63 69 66 69 | 63 20 64 61 74 61 20 76 |-specifi|c data v|
|00000580| 69 61 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 69 |ia the s|tandardi|
|00000590| 7a 65 64 20 28 49 53 4f | 20 43 2c 20 58 50 47 34 |zed (ISO| C, XPG4|
|000005a0| 2c 20 50 4f 53 49 58 20 | 31 2e 63 29 20 6d 65 74 |, POSIX |1.c) met|
|000005b0| 68 6f 64 20 63 61 6c 6c | 65 64 20 00 00 80 00 00 |hod call|ed .....|
|000005c0| 05 88 00 00 00 34 f1 07 | 97 ea fb ff 77 19 fc ff |.....4..|....w...|
|000005d0| 20 22 00 00 22 74 68 65 | 20 6c 6f 63 61 6c 65 20 | ".."the| locale |
|000005e0| 73 79 73 74 65 6d 22 2e | 20 54 68 65 20 6c 6f 63 |system".| The loc|
|000005f0| 61 6c 65 20 73 79 73 74 | 65 6d 20 69 73 20 63 6f |ale syst|em is co|
|00000600| 6e 74 72 6f 6c 6c 65 64 | 20 70 65 72 20 61 70 70 |ntrolled| per app|
|00000610| 6c 69 63 61 74 69 6f 6e | 20 75 73 69 6e 67 20 6f |lication| using o|
|00000620| 6e 65 20 70 72 61 67 6d | 61 2c 20 6f 6e 65 20 66 |ne pragm|a, one f|
|00000630| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 2c 20 61 6e |unction |call, an|
|00000640| 64 20 00 00 00 88 00 00 | a5 44 00 00 40 14 3e 02 |d ......|.D..@.>.|
|00000650| 70 b2 fb ff 50 e1 fb ff | 20 22 00 00 73 65 76 65 |p...P...| "..seve|
|00000660| 72 61 6c 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ral envi|ronment |
|00000670| 76 61 72 69 61 62 6c 65 | 73 2e 0d 07 10 09 5d 00 |variable|s.....].|
|00000680| 10 09 5d 00 00 00 00 00 | 00 44 00 00 85 94 00 00 |..].....|.D......|
|00000690| 00 c4 d6 07 99 43 fb ff | 79 72 fb ff 28 23 00 00 |.....C..|yr..(#..|
|000006a0| 4e 4f 54 45 08 72 69 6e | 10 00 00 00 00 00 00 00 |NOTE.rin|........|
|000006b0| 3a 20 54 68 69 73 20 66 | 65 61 74 75 72 65 20 69 |: This f|eature i|
|000006c0| 73 20 6e 65 77 20 69 6e | 20 50 65 72 6c 20 35 2e |s new in| Perl 5.|
|000006d0| 30 30 34 2c 20 61 6e 64 | 20 64 6f 65 73 20 6e 6f |004, and| does no|
|000006e0| 74 20 61 70 70 6c 79 20 | 75 6e 6c 65 73 73 20 61 |t apply |unless a|
|000006f0| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 70 |n applic|ation sp|
|00000700| 65 63 69 66 69 63 61 6c | 6c 79 20 72 65 71 75 65 |ecifical|ly reque|
|00000710| 73 74 73 20 69 74 20 2d | 20 00 00 00 00 94 00 00 |sts it -| .......|
|00000720| 85 b4 00 00 00 f8 9f 07 | 72 0b fb ff 52 3a fb ff |........|r...R:..|
|00000730| 20 22 00 00 73 65 65 20 | 74 68 65 20 63 68 61 70 | "..see |the chap|
|00000740| 74 65 72 20 07 63 65 2c | 10 0a 5d 00 10 0a 5d 00 |ter .ce,|..]...].|
|00000750| 00 00 00 00 42 61 63 6b | 77 61 72 64 20 63 6f 6d |....Back|ward com|
|00000760| 70 61 74 69 62 69 6c 69 | 74 79 08 00 10 00 00 00 |patibili|ty......|
|00000770| 00 00 00 00 2e 20 54 68 | 65 20 6f 6e 65 20 65 78 |..... Th|e one ex|
|00000780| 63 65 70 74 69 6f 6e 20 | 69 73 20 74 68 61 74 20 |ception |is that |
|00000790| 77 72 69 74 65 28 29 20 | 6e 6f 77 20 07 10 5d 00 |write() |now ..].|
|000007a0| 10 0b 5d 00 10 0b 5d 00 | 00 00 00 00 61 6c 77 61 |..]...].|....alwa|
|000007b0| 79 73 08 00 10 00 00 00 | 00 00 00 00 20 75 73 65 |ys......|.... use|
|000007c0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 00 00 |s the cu|rrent ..|
|000007d0| 00 b4 00 00 a5 4c 00 00 | 40 ac b7 02 4b d3 fa ff |.....L..|@...K...|
|000007e0| 2b 02 fb ff 20 22 00 00 | 6c 6f 63 61 6c 65 20 2d |+... "..|locale -|
|000007f0| 20 73 65 65 20 74 68 65 | 20 73 65 63 74 69 6f 6e | see the| section|
|00000800| 20 6f 6e 20 22 4e 4f 54 | 45 53 22 2e 0d 07 20 79 | on "NOT|ES"... y|
|00000810| 08 0c 5d 00 08 0c 5d 00 | 00 00 00 00 00 4c 00 00 |..]...].|.....L..|
|00000820| a5 4c 00 00 40 be 23 03 | 04 4d fa ff 54 93 fa ff |.L..@.#.|.M..T...|
|00000830| 68 37 00 00 50 72 65 70 | 61 72 69 6e 67 20 54 6f |h7..Prep|aring To|
|00000840| 20 55 73 65 20 4c 6f 63 | 61 05 6c 65 73 0d 08 72 | Use Loc|a.les..r|
|00000850| 08 0d 5d 00 00 00 00 00 | 07 43 20 6c 14 0e 5d 00 |..].....|.C l..].|
|00000860| 14 0e 5d 00 00 00 00 00 | 00 4c 00 00 05 88 00 00 |..].....|.L......|
|00000870| 00 a4 ba 07 a3 f4 f9 ff | 83 23 fa ff 20 22 00 00 |........|.#.. "..|
|00000880| 49 66 20 50 65 72 6c 20 | 61 70 70 6c 69 63 61 74 |If Perl |applicat|
|00000890| 69 6f 6e 73 20 61 72 65 | 20 74 6f 20 62 65 20 61 |ions are| to be a|
|000008a0| 62 6c 65 20 74 6f 20 75 | 6e 64 65 72 73 74 61 6e |ble to u|nderstan|
|000008b0| 64 20 61 6e 64 20 70 72 | 65 73 65 6e 74 20 79 6f |d and pr|esent yo|
|000008c0| 75 72 20 64 61 74 61 20 | 63 6f 72 72 65 63 74 6c |ur data |correctl|
|000008d0| 79 20 61 63 63 6f 72 64 | 69 6e 67 20 61 20 6c 6f |y accord|ing a lo|
|000008e0| 63 61 6c 65 20 6f 66 20 | 79 6f 75 72 20 00 00 00 |cale of |your ...|
|000008f0| 00 88 00 00 a5 80 00 00 | 40 90 fd 02 7c bc f9 ff |........|@...|...|
|00000900| 5c eb f9 ff 20 22 00 00 | 63 68 6f 69 63 65 2c 20 |\... "..|choice, |
|00000910| 07 76 61 69 10 0f 5d 00 | 14 0e 5d 00 10 0f 5d 00 |.vai..].|..]...].|
|00000920| 00 00 00 00 61 6c 6c 08 | 10 00 00 00 14 0e 5d 00 |....all.|......].|
|00000930| 00 00 00 00 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c |.... of |the foll|
|00000940| 6f 77 69 6e 67 20 6d 75 | 73 74 20 62 65 20 74 72 |owing mu|st be tr|
|00000950| 75 65 3a 0d 08 72 20 69 | 14 00 00 00 00 00 00 00 |ue:..r i|........|
|00000960| 07 68 65 79 13 10 5d 00 | 13 10 5d 00 00 00 00 00 |.hey..].|..].....|
|00000970| 00 80 00 00 85 b0 00 00 | 04 2c 30 07 a5 4d f9 ff |........|.,0..M..|
|00000980| 85 7c f9 ff 20 22 00 00 | 12 79 73 74 e8 35 00 00 |.|.. "..|.yst.5..|
|00000990| 00 00 00 00 8f 12 73 79 | 70 17 00 00 00 00 00 00 |......sy|p.......|
|000009a0| 07 76 69 64 10 11 5d 00 | 13 10 5d 00 10 11 5d 00 |.vid..].|..]...].|
|000009b0| 00 00 00 00 59 6f 75 72 | 20 6f 70 65 72 61 74 69 |....Your| operati|
|000009c0| 6e 67 20 73 79 73 74 65 | 6d 20 6d 75 73 74 20 73 |ng syste|m must s|
|000009d0| 75 70 70 6f 72 74 20 74 | 68 65 20 6c 6f 63 61 6c |upport t|he local|
|000009e0| 65 20 73 79 73 74 65 6d | 08 20 6f 74 10 00 00 00 |e system|. ot....|
|000009f0| 13 10 5d 00 00 00 00 00 | 2e 20 20 49 66 20 69 74 |..].....|. If it|
|00000a00| 20 64 6f 65 73 2c 20 79 | 6f 75 20 73 68 6f 75 6c | does, y|ou shoul|
|00000a10| 64 20 66 69 6e 64 20 74 | 68 61 74 20 74 68 65 20 |d find t|hat the |
|00000a20| 00 b0 00 00 25 54 00 00 | 40 48 23 04 7e 15 f9 ff |....%T..|@H#.~...|
|00000a30| 5e 44 f9 ff 20 22 00 00 | 73 65 74 6c 6f 63 61 6c |^D.. "..|setlocal|
|00000a40| 65 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |e() func|tion is |
|00000a50| 61 20 64 6f 63 75 6d 65 | 6e 74 65 64 20 70 61 72 |a docume|nted par|
|00000a60| 74 20 6f 66 20 69 74 73 | 20 43 20 6c 69 62 72 61 |t of its| C libra|
|00000a70| 72 79 2e 0d 00 54 00 00 | 85 b8 00 00 04 3c ef 07 |ry...T..|.....<..|
|00000a80| a7 a6 f8 ff 87 d5 f8 ff | 20 22 00 00 12 28 59 6f |........| "...(Yo|
|00000a90| e8 35 00 00 00 00 00 00 | 8f 12 20 74 70 17 00 00 |.5......|.. tp...|
|00000aa0| 00 00 00 00 07 72 20 73 | 10 12 5d 00 13 10 5d 00 |.....r s|..]...].|
|00000ab0| 10 12 5d 00 00 00 00 00 | 44 65 66 69 6e 69 74 69 |..].....|Definiti|
|00000ac0| 6f 6e 73 20 66 6f 72 20 | 74 68 65 20 6c 6f 63 61 |ons for |the loca|
|00000ad0| 6c 65 73 20 77 68 69 63 | 68 20 79 6f 75 20 75 73 |les whic|h you us|
|00000ae0| 65 20 6d 75 73 74 20 62 | 65 20 69 6e 73 74 61 6c |e must b|e instal|
|00000af0| 6c 65 64 08 10 00 00 00 | 13 10 5d 00 00 00 00 00 |led.....|..].....|
|00000b00| 2e 20 20 59 6f 75 2c 20 | 6f 72 20 79 6f 75 72 20 |. You, |or your |
|00000b10| 73 79 73 74 65 6d 20 61 | 64 6d 69 6e 69 73 74 72 |system a|dministr|
|00000b20| 61 74 6f 72 2c 20 6d 75 | 73 74 20 00 00 b8 00 00 |ator, mu|st .....|
|00000b30| 05 80 00 00 00 68 0f 07 | 80 6e f8 ff 60 9d f8 ff |.....h..|.n..`...|
|00000b40| 20 22 00 00 6d 61 6b 65 | 20 73 75 72 65 20 74 68 | "..make| sure th|
|00000b50| 61 74 20 74 68 69 73 20 | 69 73 20 74 68 65 20 63 |at this |is the c|
|00000b60| 61 73 65 2e 20 54 68 65 | 20 61 76 61 69 6c 61 62 |ase. The| availab|
|00000b70| 6c 65 20 6c 6f 63 61 6c | 65 73 2c 20 74 68 65 20 |le local|es, the |
|00000b80| 6c 6f 63 61 74 69 6f 6e | 20 69 6e 20 77 68 69 63 |location| in whic|
|00000b90| 68 20 74 68 65 79 20 61 | 72 65 20 6b 65 70 74 2c |h they a|re kept,|
|00000ba0| 20 61 6e 64 20 74 68 65 | 20 00 00 00 00 80 00 00 | and the| .......|
|00000bb0| 05 7c 00 00 00 f0 47 07 | 59 36 f8 ff 39 65 f8 ff |.|....G.|Y6..9e..|
|00000bc0| 20 22 00 00 6d 61 6e 6e | 65 72 20 69 6e 20 77 68 | "..mann|er in wh|
|00000bd0| 69 63 68 20 74 68 65 79 | 20 61 72 65 20 69 6e 73 |ich they| are ins|
|00000be0| 74 61 6c 6c 65 64 2c 20 | 76 61 72 79 20 66 72 6f |talled, |vary fro|
|00000bf0| 6d 20 73 79 73 74 65 6d | 20 74 6f 20 73 79 73 74 |m system| to syst|
|00000c00| 65 6d 2e 20 20 53 6f 6d | 65 20 73 79 73 74 65 6d |em. Som|e system|
|00000c10| 73 20 70 72 6f 76 69 64 | 65 20 6f 6e 6c 79 20 61 |s provid|e only a|
|00000c20| 20 66 65 77 2c 20 00 00 | 00 7c 00 00 05 7c 00 00 | few, ..|.|...|..|
|00000c30| 00 c0 1d 07 32 fe f7 ff | 12 2d f8 ff 20 22 00 00 |....2...|.-.. "..|
|00000c40| 68 61 72 64 2d 77 69 72 | 65 64 2c 20 6c 6f 63 61 |hard-wir|ed, loca|
|00000c50| 6c 65 73 2c 20 61 6e 64 | 20 64 6f 20 6e 6f 74 20 |les, and| do not |
|00000c60| 61 6c 6c 6f 77 20 6d 6f | 72 65 20 74 6f 20 62 65 |allow mo|re to be|
|00000c70| 20 61 64 64 65 64 3b 20 | 6f 74 68 65 72 73 20 61 | added; |others a|
|00000c80| 6c 6c 6f 77 20 79 6f 75 | 20 74 6f 20 61 64 64 20 |llow you| to add |
|00000c90| 22 63 61 6e 6e 65 64 22 | 20 6c 6f 63 61 6c 65 73 |"canned"| locales|
|00000ca0| 20 00 00 00 00 7c 00 00 | 05 80 00 00 00 7c 55 07 | ....|..|.....|U.|
|00000cb0| 0b c6 f7 ff eb f4 f7 ff | 20 22 00 00 70 72 6f 76 |........| "..prov|
|00000cc0| 69 64 65 64 20 62 79 20 | 74 68 65 20 73 79 73 74 |ided by |the syst|
|00000cd0| 65 6d 20 73 75 70 70 6c | 69 65 72 3b 20 73 74 69 |em suppl|ier; sti|
|00000ce0| 6c 6c 20 6f 74 68 65 72 | 73 20 61 6c 6c 6f 77 20 |ll other|s allow |
|00000cf0| 79 6f 75 20 6f 72 20 74 | 68 65 20 73 79 73 74 65 |you or t|he syste|
|00000d00| 6d 20 61 64 6d 69 6e 69 | 73 74 72 61 74 6f 72 20 |m admini|strator |
|00000d10| 74 6f 20 64 65 66 69 6e | 65 20 61 6e 64 20 61 64 |to defin|e and ad|
|00000d20| 64 20 00 00 00 80 00 00 | 05 84 00 00 00 fc 9b 07 |d ......|........|
|00000d30| e4 8d f7 ff c4 bc f7 ff | 20 22 00 00 61 72 62 69 |........| "..arbi|
|00000d40| 74 72 61 72 79 20 6c 6f | 63 61 6c 65 73 2e 20 20 |trary lo|cales. |
|00000d50| 28 59 6f 75 20 6d 61 79 | 20 68 61 76 65 20 74 6f |(You may| have to|
|00000d60| 20 61 73 6b 20 79 6f 75 | 72 20 73 75 70 70 6c 69 | ask you|r suppli|
|00000d70| 65 72 20 74 6f 20 70 72 | 6f 76 69 64 65 20 63 61 |er to pr|ovide ca|
|00000d80| 6e 6e 65 64 20 6c 6f 63 | 61 6c 65 73 20 77 68 69 |nned loc|ales whi|
|00000d90| 63 68 20 61 72 65 20 6e | 6f 74 20 64 65 6c 69 76 |ch are n|ot deliv|
|00000da0| 65 72 65 64 20 00 00 00 | 00 84 00 00 25 70 00 00 |ered ...|....%p..|
|00000db0| 40 00 6f 06 bd 55 f7 ff | 9d 84 f7 ff 20 22 00 00 |@.o..U..|.... "..|
|00000dc0| 77 69 74 68 20 79 6f 75 | 72 20 6f 70 65 72 61 74 |with you|r operat|
|00000dd0| 69 6e 67 20 73 79 73 74 | 65 6d 2e 29 20 20 52 65 |ing syst|em.) Re|
|00000de0| 61 64 20 79 6f 75 72 20 | 73 79 73 74 65 6d 20 64 |ad your |system d|
|00000df0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|00000e00| 20 66 75 72 74 68 65 72 | 20 69 6c 6c 75 6d 69 6e | further| illumin|
|00000e10| 61 74 69 6f 6e 2e 0d 00 | 00 70 00 00 85 d0 00 00 |ation...|.p......|
|00000e20| 04 94 bb 07 e6 e6 f6 ff | c6 15 f7 ff 20 22 00 00 |........|.... "..|
|00000e30| 12 20 74 68 e8 35 00 00 | 00 00 00 00 8f 12 6f 6e |. th.5..|......on|
|00000e40| 70 17 00 00 00 00 00 00 | 07 4d 45 4e 10 13 5d 00 |p.......|.MEN..].|
|00000e50| 13 10 5d 00 10 13 5d 00 | 00 00 00 00 50 65 72 6c |..]...].|....Perl|
|00000e60| 20 6d 75 73 74 20 62 65 | 6c 69 65 76 65 20 74 68 | must be|lieve th|
|00000e70| 61 74 20 74 68 65 20 6c | 6f 63 61 6c 65 20 73 79 |at the l|ocale sy|
|00000e80| 73 74 65 6d 20 69 73 20 | 73 75 70 70 6f 72 74 65 |stem is |supporte|
|00000e90| 64 08 79 20 10 00 00 00 | 13 10 5d 00 00 00 00 00 |d.y ....|..].....|
|00000ea0| 2e 20 20 49 66 20 69 74 | 20 64 6f 65 73 2c 20 07 |. If it| does, .|
|00000eb0| 0e 14 5d 00 13 10 5d 00 | 0e 14 5d 00 00 00 00 00 |..]...].|..].....|
|00000ec0| 70 65 72 6c 20 2d 56 3a | 64 5f 73 65 74 6c 6f 63 |perl -V:|d_setloc|
|00000ed0| 61 6c 65 08 0e 15 5d 00 | 13 10 5d 00 00 00 00 00 |ale...].|..].....|
|00000ee0| 20 77 69 6c 6c 20 00 00 | 00 d0 00 00 a5 a0 00 00 | will ..|........|
|00000ef0| 40 68 b5 03 bf ae f6 ff | 9f dd f6 ff 20 22 00 00 |@h......|.... "..|
|00000f00| 73 61 79 20 74 68 61 74 | 20 74 68 65 20 76 61 6c |say that| the val|
|00000f10| 75 65 20 66 6f 72 20 07 | 0e 16 5d 00 13 10 5d 00 |ue for .|..]...].|
|00000f20| 0e 16 5d 00 00 00 00 00 | 64 5f 73 65 74 6c 6f 63 |..].....|d_setloc|
|00000f30| 61 6c 65 08 0e 17 5d 00 | 13 10 5d 00 00 00 00 00 |ale...].|..].....|
|00000f40| 20 69 73 20 07 63 72 69 | 0e 18 5d 00 13 10 5d 00 | is .cri|..]...].|
|00000f50| 0e 18 5d 00 00 00 00 00 | 64 65 66 69 6e 65 08 00 |..].....|define..|
|00000f60| 0e 19 5d 00 13 10 5d 00 | 00 00 00 00 2e 0d 08 20 |..]...].|....... |
|00000f70| 13 1a 5d 00 00 00 00 00 | 07 20 66 75 14 1b 5d 00 |..].....|. fu..].|
|00000f80| 14 1b 5d 00 00 00 00 00 | 00 a0 00 00 05 80 00 00 |..].....|........|
|00000f90| 00 50 33 07 e8 3f f6 ff | c8 6e f6 ff 20 22 00 00 |.P3..?..|.n.. "..|
|00000fa0| 49 66 20 79 6f 75 20 77 | 61 6e 74 20 61 20 50 65 |If you w|ant a Pe|
|00000fb0| 72 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |rl appli|cation t|
|00000fc0| 6f 20 70 72 6f 63 65 73 | 73 20 61 6e 64 20 70 72 |o proces|s and pr|
|00000fd0| 65 73 65 6e 74 20 79 6f | 75 72 20 64 61 74 61 20 |esent yo|ur data |
|00000fe0| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 61 20 70 |accordin|g to a p|
|00000ff0| 61 72 74 69 63 75 6c 61 | 72 20 6c 6f 63 61 6c 65 |articula|r locale|
|00001000| 2c 20 74 68 65 20 00 00 | 00 80 00 00 85 c0 00 00 |, the ..|........|
|00001010| 00 e0 e1 07 c1 07 f6 ff | a1 36 f6 ff 20 22 00 00 |........|.6.. "..|
|00001020| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 63 6f 64 65 |applicat|ion code|
|00001030| 20 73 68 6f 75 6c 64 20 | 69 6e 63 6c 75 64 65 20 | should |include |
|00001040| 74 68 65 20 07 00 00 00 | 0e 1c 5d 00 14 1b 5d 00 |the ....|..]...].|
|00001050| 0e 1c 5d 00 00 00 00 00 | 75 73 65 a0 6c 6f 63 61 |..].....|use.loca|
|00001060| 6c 65 08 61 0e 1d 5d 00 | 14 1b 5d 00 00 00 00 00 |le.a..].|..].....|
|00001070| 20 70 72 61 67 6d 61 20 | 28 73 65 65 20 74 68 65 | pragma |(see the|
|00001080| 20 63 68 61 70 74 65 72 | 20 07 6c 65 10 1e 5d 00 | chapter| .le..].|
|00001090| 14 1b 5d 00 10 1e 5d 00 | 00 00 00 00 54 68 65 20 |..]...].|....The |
|000010a0| 75 73 65 20 6c 6f 63 61 | 6c 65 20 70 72 61 67 6d |use loca|le pragm|
|000010b0| 61 08 5d 00 10 00 00 00 | 14 1b 5d 00 00 00 00 00 |a.].....|..].....|
|000010c0| 29 20 77 68 65 72 65 20 | 00 c0 00 00 a5 94 00 00 |) where |........|
|000010d0| 40 84 56 04 9a cf f5 ff | 7a fe f5 ff 20 22 00 00 |@.V.....|z... "..|
|000010e0| 61 70 70 72 6f 70 72 69 | 61 74 65 2c 20 61 6e 64 |appropri|ate, and|
|000010f0| 20 07 5d 00 10 1f 5d 00 | 14 1b 5d 00 10 1f 5d 00 | .]...].|..]...].|
|00001100| 00 00 00 00 61 74 20 6c | 65 61 73 74 20 6f 6e 65 |....at l|east one|
|00001110| 08 2f 5d 00 10 00 00 00 | 14 1b 5d 00 00 00 00 00 |./].....|..].....|
|00001120| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|00001130| 67 20 6d 75 73 74 20 62 | 65 20 74 72 75 65 3a 0d |g must b|e true:.|
|00001140| 08 20 07 05 14 00 00 00 | 00 00 00 00 07 32 5d 00 |. ......|.....2].|
|00001150| 13 20 5d 00 13 20 5d 00 | 00 00 00 00 00 94 00 00 |. ].. ].|........|
|00001160| 85 9c 00 00 04 90 d1 07 | c3 60 f5 ff a3 8f f5 ff |........|.`......|
|00001170| 20 22 00 00 12 00 00 00 | e8 35 00 00 00 00 00 00 | "......|.5......|
|00001180| 8f 12 5d 00 70 17 00 00 | 00 00 00 00 07 20 07 05 |..].p...|..... ..|
|00001190| 10 21 5d 00 13 20 5d 00 | 10 21 5d 00 00 00 00 00 |.!].. ].|.!].....|
|000011a0| 54 68 65 20 6c 6f 63 61 | 6c 65 2d 64 65 74 65 72 |The loca|le-deter|
|000011b0| 6d 69 6e 69 6e 67 20 65 | 6e 76 69 72 6f 6e 6d 65 |mining e|nvironme|
|000011c0| 6e 74 20 76 61 72 69 61 | 62 6c 65 73 20 28 73 65 |nt varia|bles (se|
|000011d0| 65 20 74 68 65 20 73 65 | 63 74 69 6f 6e 20 6f 6e |e the se|ction on|
|000011e0| 20 22 45 4e 56 49 52 4f | 4e 4d 45 4e 54 22 29 20 | "ENVIRO|NMENT") |
|000011f0| 6d 75 73 74 20 62 65 20 | 00 9c 00 00 85 90 00 00 |must be |........|
|00001200| 00 10 64 07 9c 28 f5 ff | 7c 57 f5 ff 28 23 00 00 |..d..(..||W..(#..|
|00001210| 63 6f 72 72 65 63 74 6c | 79 20 73 65 74 20 75 70 |correctl|y set up|
|00001220| 08 20 20 73 10 00 00 00 | 13 20 5d 00 00 00 00 00 |. s....|. ].....|
|00001230| 2c 20 65 69 74 68 65 72 | 20 62 79 20 79 6f 75 72 |, either| by your|
|00001240| 73 65 6c 66 2c 20 6f 72 | 20 62 79 20 74 68 65 20 |self, or| by the |
|00001250| 70 65 72 73 6f 6e 20 77 | 68 6f 20 73 65 74 20 75 |person w|ho set u|
|00001260| 70 20 79 6f 75 72 20 73 | 79 73 74 65 6d 20 61 63 |p your s|ystem ac|
|00001270| 63 6f 75 6e 74 2c 20 61 | 74 20 74 68 65 20 74 69 |count, a|t the ti|
|00001280| 6d 65 20 74 68 65 20 00 | 00 90 00 00 25 30 00 00 |me the .|....%0..|
|00001290| 40 b4 8f 01 75 f0 f4 ff | 55 1f f5 ff 20 22 00 00 |@...u...|U... "..|
|000012a0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 69 73 20 73 |applicat|ion is s|
|000012b0| 74 61 72 74 65 64 2e 0d | 00 30 00 00 85 c4 00 00 |tarted..|.0......|
|000012c0| 04 40 88 07 9e 81 f4 ff | 7e b0 f4 ff 20 22 00 00 |.@......|~... "..|
|000012d0| 12 2c 5d 00 e8 35 00 00 | 00 00 00 00 8f 12 5d 00 |.,]..5..|......].|
|000012e0| 70 17 00 00 00 00 00 00 | 07 00 00 00 10 22 5d 00 |p.......|....."].|
|000012f0| 13 20 5d 00 10 22 5d 00 | 00 00 00 00 54 68 65 20 |. ].."].|....The |
|00001300| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6d 75 73 74 |applicat|ion must|
|00001310| 20 73 65 74 20 69 74 73 | 20 6f 77 6e 20 6c 6f 63 | set its| own loc|
|00001320| 61 6c 65 08 10 00 00 00 | 13 20 5d 00 00 00 00 00 |ale.....|. ].....|
|00001330| 20 75 73 69 6e 67 20 74 | 68 65 20 6d 65 74 68 6f | using t|he metho|
|00001340| 64 20 64 65 73 63 72 69 | 62 65 64 20 69 6e 20 74 |d descri|bed in t|
|00001350| 68 65 20 63 68 61 70 74 | 65 72 20 07 10 23 5d 00 |he chapt|er ..#].|
|00001360| 13 20 5d 00 10 23 5d 00 | 00 00 00 00 54 68 65 20 |. ]..#].|....The |
|00001370| 73 65 74 6c 6f 63 61 6c | 65 20 00 00 00 c4 00 00 |setlocal|e ......|
|00001380| a5 4c 00 00 40 68 b2 00 | 77 49 f4 ff 57 78 f4 ff |.L..@h..|wI..Wx..|
|00001390| 28 23 00 00 66 75 6e 63 | 74 69 6f 6e 08 12 5d 00 |(#..func|tion..].|
|000013a0| 10 00 00 00 13 20 5d 00 | 00 00 00 00 2e 0d 08 00 |..... ].|........|
|000013b0| 13 24 5d 00 00 00 00 00 | 07 00 00 00 08 25 5d 00 |.$].....|.....%].|
|000013c0| 08 25 5d 00 00 00 00 00 | 00 4c 00 00 01 10 00 00 |.%].....|.L......|
|000013d0| 41 90 b9 01 00 00 00 00 | 00 10 00 00 02 18 00 00 |A.......|........|
|000013e0| 64 02 00 00 00 00 00 00 | 08 25 5d 00 00 00 00 00 |d.......|.%].....|
|000013f0| 00 18 00 00 a5 4c 00 00 | 40 90 b9 01 5f 2d f2 ff |.....L..|@..._-..|
|00001400| af 73 f2 ff 68 37 00 00 | 16 00 00 00 b0 fc 07 00 |.s..h7..|........|
|00001410| 00 00 00 00 55 73 69 6e | 67 20 4c 6f 63 61 6c 65 |....Usin|g Locale|
|00001420| 73 0d 08 00 08 26 5d 00 | 00 00 00 00 07 68 65 20 |s....&].|.....he |
|00001430| 0a 27 5d 00 0a 27 5d 00 | 00 00 00 00 00 4c 00 00 |.']..'].|.....L..|
|00001440| a5 48 00 00 40 3a 2c 02 | 2e cd f1 ff de 03 f2 ff |.H..@:,.|........|
|00001450| 18 2b 00 00 54 68 65 20 | 75 73 65 20 6c 6f 63 61 |.+..The |use loca|
|00001460| 6c 65 20 70 72 61 67 6d | 61 0d 08 07 0a 28 5d 00 |le pragm|a....(].|
|00001470| 00 00 00 00 07 23 5d 00 | 14 29 5d 00 14 29 5d 00 |.....#].|.)]..)].|
|00001480| 00 00 00 00 00 48 00 00 | 85 a4 00 00 00 78 b3 07 |.....H..|.....x..|
|00001490| f9 77 f1 ff d9 a6 f1 ff | 20 22 00 00 42 79 20 64 |.w......| "..By d|
|000014a0| 65 66 61 75 6c 74 2c 20 | 50 65 72 6c 20 69 67 6e |efault, |Perl ign|
|000014b0| 6f 72 65 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ores the| current|
|000014c0| 20 6c 6f 63 61 6c 65 2e | 20 20 54 68 65 20 07 77 | locale.| The .w|
|000014d0| 0e 2a 5d 00 14 29 5d 00 | 0e 2a 5d 00 00 00 00 00 |.*]..)].|.*].....|
|000014e0| 75 73 65 a0 6c 6f 63 61 | 6c 65 08 69 0e 2b 5d 00 |use.loca|le.i.+].|
|000014f0| 14 29 5d 00 00 00 00 00 | 20 70 72 61 67 6d 61 20 |.)].....| pragma |
|00001500| 74 65 6c 6c 73 20 50 65 | 72 6c 20 74 6f 20 75 73 |tells Pe|rl to us|
|00001510| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 6f |e the cu|rrent lo|
|00001520| 63 61 6c 65 20 00 00 00 | 00 a4 00 00 a5 48 00 00 |cale ...|.....H..|
|00001530| 40 5c 81 01 d2 3f f1 ff | b2 6e f1 ff 20 22 00 00 |@\...?..|.n.. "..|
|00001540| 66 6f 72 20 73 6f 6d 65 | 20 6f 70 65 72 61 74 69 |for some| operati|
|00001550| 6f 6e 73 3a 0d 08 65 72 | 14 00 00 00 00 00 00 00 |ons:..er|........|
|00001560| 07 20 65 71 13 2c 5d 00 | 13 2c 5d 00 00 00 00 00 |. eq.,].|.,].....|
|00001570| 00 48 00 00 85 50 01 00 | 04 d8 83 07 fb d0 f0 ff |.H...P..|........|
|00001580| db ff f0 ff 20 22 00 00 | 12 20 69 73 e8 35 00 00 |.... "..|. is.5..|
|00001590| 00 00 00 00 8f 12 2c 20 | 70 17 00 00 00 00 00 00 |......, |p.......|
|000015a0| 07 69 73 63 10 2d 5d 00 | 13 2c 5d 00 10 2d 5d 00 |.isc.-].|.,]..-].|
|000015b0| 00 00 00 00 54 68 65 20 | 63 6f 6d 70 61 72 69 73 |....The |comparis|
|000015c0| 6f 6e 20 6f 70 65 72 61 | 74 6f 72 73 08 61 74 65 |on opera|tors.ate|
|000015d0| 10 00 00 00 13 2c 5d 00 | 00 00 00 00 20 28 07 3a |.....,].|.... (.:|
|000015e0| 0e 2e 5d 00 13 2c 5d 00 | 0e 2e 5d 00 00 00 00 00 |..]..,].|..].....|
|000015f0| 6c 74 08 00 0e 2f 5d 00 | 13 2c 5d 00 00 00 00 00 |lt.../].|.,].....|
|00001600| 2c 20 07 00 0e 30 5d 00 | 13 2c 5d 00 0e 30 5d 00 |, ...0].|.,]..0].|
|00001610| 00 00 00 00 6c 65 08 20 | 0e 31 5d 00 13 2c 5d 00 |....le. |.1]..,].|
|00001620| 00 00 00 00 2c 20 07 20 | 0e 32 5d 00 13 2c 5d 00 |...., . |.2]..,].|
|00001630| 0e 32 5d 00 00 00 00 00 | 63 6d 70 08 0e 33 5d 00 |.2].....|cmp..3].|
|00001640| 13 2c 5d 00 00 00 00 00 | 2c 20 07 00 0e 34 5d 00 |.,].....|, ...4].|
|00001650| 13 2c 5d 00 0e 34 5d 00 | 00 00 00 00 67 65 08 63 |.,]..4].|....ge.c|
|00001660| 0e 35 5d 00 13 2c 5d 00 | 00 00 00 00 2c 20 61 6e |.5]..,].|...., an|
|00001670| 64 20 07 74 0e 36 5d 00 | 13 2c 5d 00 0e 36 5d 00 |d .t.6].|.,]..6].|
|00001680| 00 00 00 00 67 74 08 00 | 0e 37 5d 00 13 2c 5d 00 |....gt..|.7]..,].|
|00001690| 00 00 00 00 29 20 61 6e | 64 20 74 68 65 20 50 4f |....) an|d the PO|
|000016a0| 53 49 58 20 73 74 72 69 | 6e 67 20 63 6f 6c 6c 61 |SIX stri|ng colla|
|000016b0| 74 69 6f 6e 20 66 75 6e | 63 74 69 6f 6e 73 20 00 |tion fun|ctions .|
|000016c0| 00 50 01 00 85 a0 00 00 | 00 b0 fa 06 d4 98 f0 ff |.P......|........|
|000016d0| b4 c7 f0 ff 20 22 00 00 | 73 74 72 63 6f 6c 6c 28 |.... "..|strcoll(|
|000016e0| 29 20 61 6e 64 20 73 74 | 72 78 66 72 6d 28 29 20 |) and st|rxfrm() |
|000016f0| 75 73 65 20 07 70 72 69 | 0e 38 5d 00 13 2c 5d 00 |use .pri|.8]..,].|
|00001700| 0e 38 5d 00 00 00 00 00 | 4c 43 5f 43 4f 4c 4c 41 |.8].....|LC_COLLA|
|00001710| 54 45 08 00 0e 39 5d 00 | 13 2c 5d 00 00 00 00 00 |TE...9].|.,].....|
|00001720| 2e 20 20 73 6f 72 74 28 | 29 20 69 73 20 61 6c 73 |. sort(|) is als|
|00001730| 6f 20 61 66 66 65 63 74 | 65 64 20 69 66 20 69 74 |o affect|ed if it|
|00001740| 20 69 73 20 75 73 65 64 | 20 77 69 74 68 6f 75 74 | is used| without|
|00001750| 20 61 6e 20 65 78 70 6c | 69 63 69 74 20 00 00 00 | an expl|icit ...|
|00001760| 00 a0 00 00 a5 70 00 00 | 40 44 d9 03 ad 60 f0 ff |.....p..|@D...`..|
|00001770| 8d 8f f0 ff 20 22 00 00 | 63 6f 6d 70 61 72 69 73 |.... "..|comparis|
|00001780| 6f 6e 20 66 75 6e 63 74 | 69 6f 6e 20 62 65 63 61 |on funct|ion beca|
|00001790| 75 73 65 20 69 74 20 75 | 73 65 73 20 07 50 5d 00 |use it u|ses .P].|
|000017a0| 0e 3a 5d 00 13 2c 5d 00 | 0e 3a 5d 00 00 00 00 00 |.:]..,].|.:].....|
|000017b0| 63 6d 70 08 0e 3b 5d 00 | 13 2c 5d 00 00 00 00 00 |cmp..;].|.,].....|
|000017c0| 20 62 79 20 64 65 66 61 | 75 6c 74 2e 0d 00 00 00 | by defa|ult.....|
|000017d0| 00 70 00 00 85 fc 00 00 | 04 fc e3 07 d6 f1 ef ff |.p......|........|
|000017e0| b6 20 f0 ff 28 23 00 00 | 12 20 07 05 50 46 00 00 |. ..(#..|. ..PF..|
|000017f0| 00 00 00 00 12 00 00 00 | 70 17 00 00 00 00 00 00 |........|p.......|
|00001800| 07 05 05 05 10 3c 5d 00 | 13 2c 5d 00 10 3c 5d 00 |.....<].|.,]..<].|
|00001810| 00 00 00 00 4e 6f 74 65 | 3a 08 72 65 10 00 00 00 |....Note|:.re....|
|00001820| 13 2c 5d 00 00 00 00 00 | 20 07 74 68 0e 3d 5d 00 |.,].....| .th.=].|
|00001830| 13 2c 5d 00 0e 3d 5d 00 | 00 00 00 00 65 71 08 05 |.,]..=].|....eq..|
|00001840| 0e 3e 5d 00 13 2c 5d 00 | 00 00 00 00 20 61 6e 64 |.>]..,].|.... and|
|00001850| 20 07 20 43 0e 3f 5d 00 | 13 2c 5d 00 0e 3f 5d 00 | . C.?].|.,]..?].|
|00001860| 00 00 00 00 6e 65 08 00 | 0e 40 5d 00 13 2c 5d 00 |....ne..|.@]..,].|
|00001870| 00 00 00 00 20 61 72 65 | 20 75 6e 61 66 66 65 63 |.... are| unaffec|
|00001880| 74 65 64 20 62 79 20 74 | 68 65 20 6c 6f 63 61 6c |ted by t|he local|
|00001890| 65 3a 20 74 68 65 79 20 | 61 6c 77 61 79 73 20 70 |e: they |always p|
|000018a0| 65 72 66 6f 72 6d 20 61 | 20 62 79 74 65 2d 62 79 |erform a| byte-by|
|000018b0| 2d 62 79 74 65 20 63 6f | 6d 70 61 72 69 73 6f 6e |-byte co|mparison|
|000018c0| 20 6f 66 20 74 68 65 69 | 72 20 00 00 00 fc 00 00 | of thei|r ......|
|000018d0| 85 9c 00 00 00 28 0d 07 | af b9 ef ff 8f e8 ef ff |.....(..|........|
|000018e0| 20 22 00 00 73 63 61 6c | 61 72 20 6f 70 65 72 61 | "..scal|ar opera|
|000018f0| 6e 64 73 2e 20 20 57 68 | 61 74 27 73 20 6d 6f 72 |nds. Wh|at's mor|
|00001900| 65 2c 20 69 66 20 07 61 | 0e 41 5d 00 13 2c 5d 00 |e, if .a|.A]..,].|
|00001910| 0e 41 5d 00 00 00 00 00 | 63 6d 70 08 0e 42 5d 00 |.A].....|cmp..B].|
|00001920| 13 2c 5d 00 00 00 00 00 | 20 66 69 6e 64 73 20 74 |.,].....| finds t|
|00001930| 68 61 74 20 69 74 73 20 | 6f 70 65 72 61 6e 64 73 |hat its |operands|
|00001940| 20 61 72 65 20 65 71 75 | 61 6c 20 61 63 63 6f 72 | are equ|al accor|
|00001950| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 63 6f 6c 6c |ding to |the coll|
|00001960| 61 74 69 6f 6e 20 00 00 | 00 9c 00 00 05 7c 00 00 |ation ..|.....|..|
|00001970| 00 7c 49 07 88 81 ef ff | 68 b0 ef ff 20 22 00 00 |.|I.....|h... "..|
|00001980| 73 65 71 75 65 6e 63 65 | 20 73 70 65 63 69 66 69 |sequence| specifi|
|00001990| 65 64 20 62 79 20 74 68 | 65 20 63 75 72 72 65 6e |ed by th|e curren|
|000019a0| 74 20 6c 6f 63 61 6c 65 | 2c 20 69 74 20 67 6f 65 |t locale|, it goe|
|000019b0| 73 20 6f 6e 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 |s on to |perform |
|000019c0| 61 20 62 79 74 65 2d 62 | 79 2d 62 79 74 65 20 63 |a byte-b|y-byte c|
|000019d0| 6f 6d 70 61 72 69 73 6f | 6e 2c 20 61 6e 64 20 6f |ompariso|n, and o|
|000019e0| 6e 6c 79 20 00 7c 00 00 | 85 a0 00 00 00 5c 18 07 |nly .|..|.....\..|
|000019f0| 61 49 ef ff 41 78 ef ff | 20 22 00 00 72 65 74 75 |aI..Ax..| "..retu|
|00001a00| 72 6e 73 20 07 74 68 65 | 11 43 5d 00 13 2c 5d 00 |rns .the|.C]..,].|
|00001a10| 11 43 5d 00 00 00 00 00 | 30 08 29 20 11 00 00 00 |.C].....|0.) ....|
|00001a20| 13 2c 5d 00 00 00 00 00 | 20 28 65 71 75 61 6c 29 |.,].....| (equal)|
|00001a30| 20 69 66 20 74 68 65 20 | 6f 70 65 72 61 6e 64 73 | if the |operands|
|00001a40| 20 61 72 65 20 62 69 74 | 2d 66 6f 72 2d 62 69 74 | are bit|-for-bit|
|00001a50| 20 69 64 65 6e 74 69 63 | 61 6c 2e 20 20 49 66 20 | identic|al. If |
|00001a60| 79 6f 75 20 72 65 61 6c | 6c 79 20 77 61 6e 74 20 |you real|ly want |
|00001a70| 74 6f 20 6b 6e 6f 77 20 | 77 68 65 74 68 65 72 20 |to know |whether |
|00001a80| 74 77 6f 20 00 a0 00 00 | 85 c0 00 00 00 c0 ff 06 |two ....|........|
|00001a90| 3a 11 ef ff 1a 40 ef ff | 20 22 00 00 73 74 72 69 |:....@..| "..stri|
|00001aa0| 6e 67 73 20 2d 20 77 68 | 69 63 68 20 07 00 00 00 |ngs - wh|ich ....|
|00001ab0| 0e 44 5d 00 13 2c 5d 00 | 0e 44 5d 00 00 00 00 00 |.D]..,].|.D].....|
|00001ac0| 65 71 08 05 0e 45 5d 00 | 13 2c 5d 00 00 00 00 00 |eq...E].|.,].....|
|00001ad0| 20 61 6e 64 20 07 5d 00 | 0e 46 5d 00 13 2c 5d 00 | and .].|.F]..,].|
|00001ae0| 0e 46 5d 00 00 00 00 00 | 63 6d 70 08 0e 47 5d 00 |.F].....|cmp..G].|
|00001af0| 13 2c 5d 00 00 00 00 00 | 20 6d 61 79 20 63 6f 6e |.,].....| may con|
|00001b00| 73 69 64 65 72 20 64 69 | 66 66 65 72 65 6e 74 20 |sider di|fferent |
|00001b10| 2d 20 61 72 65 20 65 71 | 75 61 6c 20 61 73 20 66 |- are eq|ual as f|
|00001b20| 61 72 20 61 73 20 63 6f | 6c 6c 61 74 69 6f 6e 20 |ar as co|llation |
|00001b30| 69 6e 20 74 68 65 20 6c | 6f 63 61 6c 65 20 69 73 |in the l|ocale is|
|00001b40| 20 00 00 00 00 c0 00 00 | a5 88 00 00 40 58 1d 06 | .......|....@X..|
|00001b50| 13 d9 ee ff f3 07 ef ff | 20 22 00 00 63 6f 6e 63 |........| "..conc|
|00001b60| 65 72 6e 65 64 2c 20 73 | 65 65 20 74 68 65 20 64 |erned, s|ee the d|
|00001b70| 69 73 63 75 73 73 69 6f | 6e 20 69 6e 20 74 68 65 |iscussio|n in the|
|00001b80| 20 63 68 61 70 74 65 72 | 20 07 75 73 10 48 5d 00 | chapter| .us.H].|
|00001b90| 13 2c 5d 00 10 48 5d 00 | 00 00 00 00 43 61 74 65 |.,]..H].|....Cate|
|00001ba0| 67 6f 72 79 20 4c 43 5f | 43 4f 4c 4c 41 54 45 3a |gory LC_|COLLATE:|
|00001bb0| 20 43 6f 6c 6c 61 74 69 | 6f 6e 08 00 10 00 00 00 | Collati|on......|
|00001bc0| 13 2c 5d 00 00 00 00 00 | 2e 0d 00 00 00 88 00 00 |.,].....|........|
|00001bd0| 85 c4 00 00 04 80 30 07 | 3c 6a ee ff 1c 99 ee ff |......0.|<j......|
|00001be0| 20 22 00 00 12 00 00 00 | e8 35 00 00 00 00 00 00 | "......|.5......|
|00001bf0| 8f 12 5d 00 70 17 00 00 | 00 00 00 00 07 20 71 75 |..].p...|..... qu|
|00001c00| 10 49 5d 00 13 2c 5d 00 | 10 49 5d 00 00 00 00 00 |.I]..,].|.I].....|
|00001c10| 52 65 67 75 6c 61 72 20 | 65 78 70 72 65 73 73 69 |Regular |expressi|
|00001c20| 6f 6e 73 20 61 6e 64 20 | 63 61 73 65 2d 6d 6f 64 |ons and |case-mod|
|00001c30| 69 66 69 63 61 74 69 6f | 6e 20 66 75 6e 63 74 69 |ificatio|n functi|
|00001c40| 6f 6e 73 08 10 00 00 00 | 13 2c 5d 00 00 00 00 00 |ons.....|.,].....|
|00001c50| 20 28 75 63 28 29 2c 20 | 6c 63 28 29 2c 20 75 63 | (uc(), |lc(), uc|
|00001c60| 66 69 72 73 74 28 29 2c | 20 61 6e 64 20 6c 63 66 |first(),| and lcf|
|00001c70| 69 72 73 74 28 29 29 20 | 75 73 65 20 07 6c 5d 00 |irst()) |use .l].|
|00001c80| 0e 4a 5d 00 13 2c 5d 00 | 0e 4a 5d 00 00 00 00 00 |.J]..,].|.J].....|
|00001c90| 00 c4 00 00 a5 34 00 00 | 40 00 e1 00 15 32 ee ff |.....4..|@....2..|
|00001ca0| f5 60 ee ff ba 1f 00 00 | 4c 43 5f 43 54 59 50 45 |.`......|LC_CTYPE|
|00001cb0| 08 41 2e 49 0e 4b 5d 00 | 13 2c 5d 00 00 00 00 00 |.A.I.K].|.,].....|
|00001cc0| 0d 00 00 00 00 34 00 00 | a5 c0 00 00 44 8c 01 06 |.....4..|....D...|
|00001cd0| 3e c3 ed ff 1e f2 ed ff | 20 22 00 00 12 6e 63 68 |>.......| "...nch|
|00001ce0| e8 35 00 00 00 00 00 00 | 8f 12 63 6f 70 17 00 00 |.5......|..cop...|
|00001cf0| 00 00 00 00 07 20 38 38 | 10 4c 5d 00 13 2c 5d 00 |..... 88|.L]..,].|
|00001d00| 10 4c 5d 00 00 00 00 00 | 54 68 65 20 66 6f 72 6d |.L].....|The form|
|00001d10| 61 74 74 69 6e 67 20 66 | 75 6e 63 74 69 6f 6e 73 |atting f|unctions|
|00001d20| 08 6f 5d 00 10 00 00 00 | 13 2c 5d 00 00 00 00 00 |.o].....|.,].....|
|00001d30| 20 28 70 72 69 6e 74 66 | 28 29 2c 20 73 70 72 69 | (printf|(), spri|
|00001d40| 6e 74 66 28 29 20 61 6e | 64 20 77 72 69 74 65 28 |ntf() an|d write(|
|00001d50| 29 29 20 75 73 65 20 07 | 0e 4d 5d 00 13 2c 5d 00 |)) use .|.M]..,].|
|00001d60| 0e 4d 5d 00 00 00 00 00 | 4c 43 5f 4e 55 4d 45 52 |.M].....|LC_NUMER|
|00001d70| 49 43 08 4c 0e 4e 5d 00 | 13 2c 5d 00 00 00 00 00 |IC.L.N].|.,].....|
|00001d80| 0d 00 00 00 00 c0 00 00 | a5 c8 00 00 44 74 53 05 |........|....DtS.|
|00001d90| 67 54 ed ff 47 83 ed ff | 20 22 00 00 12 43 5f 41 |gT..G...| "...C_A|
|00001da0| e8 35 00 00 00 00 00 00 | 8f 12 45 2f 70 17 00 00 |.5......|..E/p...|
|00001db0| 00 00 00 00 07 76 69 72 | 10 4f 5d 00 13 2c 5d 00 |.....vir|.O]..,].|
|00001dc0| 10 4f 5d 00 00 00 00 00 | 54 68 65 20 50 4f 53 49 |.O].....|The POSI|
|00001dd0| 58 20 64 61 74 65 20 66 | 6f 72 6d 61 74 74 69 6e |X date f|ormattin|
|00001de0| 67 20 66 75 6e 63 74 69 | 6f 6e 08 05 10 00 00 00 |g functi|on......|
|00001df0| 13 2c 5d 00 00 00 00 00 | 20 28 73 74 72 66 74 69 |.,].....| (strfti|
|00001e00| 6d 65 28 29 29 20 75 73 | 65 73 20 07 0e 50 5d 00 |me()) us|es ..P].|
|00001e10| 13 2c 5d 00 0e 50 5d 00 | 00 00 00 00 4c 43 5f 54 |.,]..P].|....LC_T|
|00001e20| 49 4d 45 08 0e 51 5d 00 | 13 2c 5d 00 00 00 00 00 |IME..Q].|.,].....|
|00001e30| 2e 0d 08 05 13 52 5d 00 | 00 00 00 00 07 77 5d 00 |.....R].|.....w].|
|00001e40| 0e 53 5d 00 0e 53 5d 00 | 00 00 00 00 00 c8 00 00 |.S]..S].|........|
|00001e50| a5 b0 00 00 40 30 a1 07 | 90 e5 ec ff 70 14 ed ff |....@0..|....p...|
|00001e60| ba 1f 00 00 4c 43 5f 43 | 4f 4c 4c 41 54 45 08 2c |....LC_C|OLLATE.,|
|00001e70| 0e 54 5d 00 00 00 00 00 | 2c 20 07 65 0e 55 5d 00 |.T].....|, .e.U].|
|00001e80| 0e 55 5d 00 00 00 00 00 | 4c 43 5f 43 54 59 50 45 |.U].....|LC_CTYPE|
|00001e90| 08 00 00 00 0e 56 5d 00 | 00 00 00 00 2c 20 61 6e |.....V].|...., an|
|00001ea0| 64 20 73 6f 20 6f 6e 2c | 20 61 72 65 20 64 69 73 |d so on,| are dis|
|00001eb0| 63 75 73 73 65 64 20 66 | 75 72 74 68 65 72 20 69 |cussed f|urther i|
|00001ec0| 6e 20 74 68 65 20 63 68 | 61 70 74 65 72 20 07 63 |n the ch|apter .c|
|00001ed0| 10 57 5d 00 10 57 5d 00 | 00 00 00 00 4c 4f 43 41 |.W]..W].|....LOCA|
|00001ee0| 4c 45 20 43 41 54 45 47 | 4f 52 49 45 53 08 00 00 |LE CATEG|ORIES...|
|00001ef0| 10 00 00 00 00 00 00 00 | 2e 0d 00 00 00 b0 00 00 |........|........|
|00001f00| a5 8c 00 00 40 f0 e1 06 | b9 76 ec ff 99 a5 ec ff |....@...|.v......|
|00001f10| 20 22 00 00 54 68 65 20 | 64 65 66 61 75 6c 74 20 | "..The |default |
|00001f20| 62 65 68 61 76 69 6f 72 | 20 72 65 74 75 72 6e 73 |behavior| returns|
|00001f30| 20 77 69 74 68 20 07 54 | 0e 58 5d 00 0e 58 5d 00 | with .T|.X]..X].|
|00001f40| 00 00 00 00 6e 6f a0 6c | 6f 63 61 6c 65 08 68 61 |....no.l|ocale.ha|
|00001f50| 0e 59 5d 00 00 00 00 00 | 20 6f 72 20 6f 6e 20 72 |.Y].....| or on r|
|00001f60| 65 61 63 68 69 6e 67 20 | 74 68 65 20 65 6e 64 20 |eaching |the end |
|00001f70| 6f 66 20 74 68 65 20 65 | 6e 63 6c 6f 73 69 6e 67 |of the e|nclosing|
|00001f80| 20 62 6c 6f 63 6b 2e 0d | 00 8c 00 00 05 88 00 00 | block..|........|
|00001f90| 00 7c 7c 07 e2 07 ec ff | c2 36 ec ff 20 22 00 00 |.||.....|.6.. "..|
|00001fa0| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 73 74 |Note tha|t the st|
|00001fb0| 72 69 6e 67 20 72 65 73 | 75 6c 74 20 6f 66 20 61 |ring res|ult of a|
|00001fc0| 6e 79 20 6f 70 65 72 61 | 74 69 6f 6e 20 74 68 61 |ny opera|tion tha|
|00001fd0| 74 20 75 73 65 73 20 6c | 6f 63 61 6c 65 20 69 6e |t uses l|ocale in|
|00001fe0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 73 20 74 61 69 |formatio|n is tai|
|00001ff0| 6e 74 65 64 2c 20 61 73 | 20 69 74 20 69 73 20 70 |nted, as| it is p|
|00002000| 6f 73 73 69 62 6c 65 20 | 66 6f 72 20 61 20 00 00 |ossible |for a ..|
|00002010| 00 88 00 00 a5 64 00 00 | 40 98 81 04 bb cf eb ff |.....d..|@.......|
|00002020| 9b fe eb ff 20 22 00 00 | 6c 6f 63 61 6c 65 20 74 |.... "..|locale t|
|00002030| 6f 20 62 65 20 75 6e 74 | 72 75 73 74 77 6f 72 74 |o be unt|rustwort|
|00002040| 68 79 2e 20 20 53 65 65 | 20 74 68 65 20 73 65 63 |hy. See| the sec|
|00002050| 74 69 6f 6e 20 6f 6e 20 | 22 53 45 43 55 52 49 54 |tion on |"SECURIT|
|00002060| 59 22 2e 0d 07 61 20 70 | 0a 5a 5d 00 0a 5a 5d 00 |Y"...a p|.Z]..Z].|
|00002070| 00 00 00 00 00 64 00 00 | a5 48 00 00 40 f2 13 02 |.....d..|.H..@...|
|00002080| 14 59 eb ff c4 8f eb ff | 18 2b 00 00 54 68 65 20 |.Y......|.+..The |
|00002090| 73 65 74 6c 6f 63 61 6c | 65 20 66 75 6e 63 74 69 |setlocal|e functi|
|000020a0| 6f 6e 0d 08 0a 5b 5d 00 | 00 00 00 00 07 20 20 52 |on...[].|..... R|
|000020b0| 14 5c 5d 00 14 5c 5d 00 | 00 00 00 00 00 48 00 00 |.\]..\].|.....H..|
|000020c0| a5 a4 00 00 40 00 d5 06 | df 03 eb ff bf 32 eb ff |....@...|.....2..|
|000020d0| 20 22 00 00 59 6f 75 20 | 63 61 6e 20 73 77 69 74 | "..You |can swit|
|000020e0| 63 68 20 6c 6f 63 61 6c | 65 73 20 61 73 20 6f 66 |ch local|es as of|
|000020f0| 74 65 6e 20 61 73 20 79 | 6f 75 20 77 69 73 68 20 |ten as y|ou wish |
|00002100| 61 74 20 72 75 6e 20 74 | 69 6d 65 20 77 69 74 68 |at run t|ime with|
|00002110| 20 74 68 65 20 50 4f 53 | 49 58 3a 3a 73 65 74 6c | the POS|IX::setl|
|00002120| 6f 63 61 6c 65 28 29 20 | 66 75 6e 63 74 69 6f 6e |ocale() |function|
|00002130| 3a 0d 08 75 14 00 00 00 | 00 00 00 00 07 74 75 72 |:..u....|.....tur|
|00002140| 12 5d 5d 00 12 5d 5d 00 | 00 00 00 00 07 61 6d 69 |.]]..]].|.....ami|
|00002150| 0c 5e 5d 00 12 5d 5d 00 | 0c 5e 5d 00 00 00 00 00 |.^]..]].|.^].....|
|00002160| 00 a4 00 00 25 4c 00 00 | 40 50 ab 04 d8 9c ea ff |....%L..|@P......|
|00002170| e8 c3 ea ff 70 1a 00 00 | 23 20 54 68 69 73 20 66 |....p...|# This f|
|00002180| 75 6e 63 74 69 6f 6e 61 | 6c 69 74 79 20 6e 6f 74 |unctiona|lity not|
|00002190| 20 75 73 61 62 6c 65 20 | 70 72 69 6f 72 20 74 6f | usable |prior to|
|000021a0| 20 50 65 72 6c 20 35 2e | 30 30 34 0d 00 4c 00 00 | Perl 5.|004..L..|
|000021b0| a5 50 00 00 40 20 48 01 | f8 6d ea ff 08 95 ea ff |.P..@ H.|.m......|
|000021c0| 70 1a 00 00 72 65 71 75 | 69 72 65 20 35 2e 30 30 |p...requ|ire 5.00|
|000021d0| 34 3b 0d 08 0c 5f 5d 00 | 12 5d 5d 00 00 00 00 00 |4;..._].|.]].....|
|000021e0| 08 20 69 73 12 00 00 00 | 00 00 00 00 07 64 20 69 |. is....|.....d i|
|000021f0| 18 60 5d 00 18 60 5d 00 | 00 00 00 00 00 50 00 00 |.`]..`].|.....P..|
|00002200| a5 48 00 00 40 00 00 00 | 68 59 ea ff 28 66 ea ff |.H..@...|hY..(f..|
|00002210| 00 00 00 00 0d 08 6f 63 | 18 61 5d 00 00 00 00 00 |......oc|.a].....|
|00002220| 07 68 65 20 12 62 5d 00 | 12 62 5d 00 00 00 00 00 |.he .b].|.b].....|
|00002230| 07 65 74 20 0c 63 5d 00 | 12 62 5d 00 0c 63 5d 00 |.et .c].|.b]..c].|
|00002240| 00 00 00 00 00 48 00 00 | 25 50 00 00 40 c0 c2 04 |.....H..|%P..@...|
|00002250| 68 08 ea ff 78 2f ea ff | 70 1a 00 00 23 20 49 6d |h...x/..|p...# Im|
|00002260| 70 6f 72 74 20 6c 6f 63 | 61 6c 65 2d 68 61 6e 64 |port loc|ale-hand|
|00002270| 6c 69 6e 67 20 74 6f 6f | 6c 20 73 65 74 20 66 72 |ling too|l set fr|
|00002280| 6f 6d 20 50 4f 53 49 58 | 20 6d 6f 64 75 6c 65 2e |om POSIX| module.|
|00002290| 0d 00 00 00 00 50 00 00 | 25 4c 00 00 40 50 ab 04 |.....P..|%L..@P..|
|000022a0| 88 d9 e9 ff 98 00 ea ff | 70 1a 00 00 23 20 54 68 |........|p...# Th|
|000022b0| 69 73 20 65 78 61 6d 70 | 6c 65 20 75 73 65 73 3a |is examp|le uses:|
|000022c0| 20 73 65 74 6c 6f 63 61 | 6c 65 20 2d 2d 20 74 68 | setloca|le -- th|
|000022d0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6c 6c 0d |e functi|on call.|
|000022e0| 00 4c 00 00 25 4c 00 00 | 40 00 65 04 a8 aa e9 ff |.L..%L..|@.e.....|
|000022f0| b8 d1 e9 ff 70 1a 00 00 | 23 20 20 20 20 20 20 20 |....p...|# |
|00002300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4c 43 5f | | LC_|
|00002310| 43 54 59 50 45 20 2d 2d | 20 65 78 70 6c 61 69 6e |CTYPE --| explain|
|00002320| 65 64 20 62 65 6c 6f 77 | 0d 00 00 00 00 4c 00 00 |ed below|.....L..|
|00002330| a5 5c 00 00 40 10 1b 02 | c8 7b e9 ff d8 a2 e9 ff |.\..@...|.{......|
|00002340| 70 1a 00 00 75 73 65 20 | 50 4f 53 49 58 20 71 77 |p...use |POSIX qw|
|00002350| 28 6c 6f 63 61 6c 65 5f | 68 29 3b 0d 08 68 65 20 |(locale_|h);..he |
|00002360| 0c 64 5d 00 12 62 5d 00 | 00 00 00 00 08 2c 20 69 |.d]..b].|....., i|
|00002370| 12 00 00 00 00 00 00 00 | 07 6f 6e 64 18 65 5d 00 |........|.ond.e].|
|00002380| 18 65 5d 00 00 00 00 00 | 00 5c 00 00 a5 48 00 00 |.e].....|.\...H..|
|00002390| 40 00 00 00 38 67 e9 ff | f8 73 e9 ff 00 00 00 00 |@...8g..|.s......|
|000023a0| 0d 08 67 6f 18 66 5d 00 | 00 00 00 00 07 6c 65 20 |..go.f].|.....le |
|000023b0| 12 67 5d 00 12 67 5d 00 | 00 00 00 00 07 6f 20 74 |.g]..g].|.....o t|
|000023c0| 0c 68 5d 00 12 67 5d 00 | 0c 68 5d 00 00 00 00 00 |.h]..g].|.h].....|
|000023d0| 00 48 00 00 25 38 00 00 | 40 90 d6 02 38 16 e9 ff |.H..%8..|@...8...|
|000023e0| 48 3d e9 ff 70 1a 00 00 | 23 20 71 75 65 72 79 20 |H=..p...|# query |
|000023f0| 61 6e 64 20 73 61 76 65 | 20 74 68 65 20 6f 6c 64 |and save| the old|
|00002400| 20 6c 6f 63 61 6c 65 0d | 00 38 00 00 a5 64 00 00 | locale.|.8...d..|
|00002410| 40 e0 1c 03 58 e7 e8 ff | 68 0e e9 ff 70 1a 00 00 |@...X...|h...p...|
|00002420| 24 6f 6c 64 5f 6c 6f 63 | 61 6c 65 20 3d 20 73 65 |$old_loc|ale = se|
|00002430| 74 6c 6f 63 61 6c 65 28 | 4c 43 5f 43 54 59 50 45 |tlocale(|LC_CTYPE|
|00002440| 29 3b 0d 08 0c 69 5d 00 | 12 67 5d 00 00 00 00 00 |);...i].|.g].....|
|00002450| 08 20 73 74 12 00 00 00 | 00 00 00 00 07 20 63 68 |. st....|..... ch|
|00002460| 18 6a 5d 00 18 6a 5d 00 | 00 00 00 00 00 64 00 00 |.j]..j].|.....d..|
|00002470| a5 48 00 00 40 00 00 00 | c8 d2 e8 ff 88 df e8 ff |.H..@...|........|
|00002480| 00 00 00 00 0d 08 70 70 | 18 6b 5d 00 00 00 00 00 |......pp|.k].....|
|00002490| 07 61 66 74 12 6c 5d 00 | 12 6c 5d 00 00 00 00 00 |.aft.l].|.l].....|
|000024a0| 07 79 20 6f 0c 6d 5d 00 | 12 6c 5d 00 0c 6d 5d 00 |.y o.m].|.l]..m].|
|000024b0| 00 00 00 00 00 48 00 00 | 25 40 00 00 40 10 92 03 |.....H..|%@..@...|
|000024c0| c8 81 e8 ff d8 a8 e8 ff | 70 1a 00 00 73 65 74 6c |........|p...setl|
|000024d0| 6f 63 61 6c 65 28 4c 43 | 5f 43 54 59 50 45 2c 20 |ocale(LC|_CTYPE, |
|000024e0| 22 66 72 5f 43 41 2e 49 | 53 4f 38 38 35 39 2d 31 |"fr_CA.I|SO8859-1|
|000024f0| 22 29 3b 0d 00 40 00 00 | a5 80 00 00 40 b0 95 05 |");..@..|....@...|
|00002500| e8 52 e8 ff f8 79 e8 ff | 70 1a 00 00 23 20 4c 43 |.R...y..|p...# LC|
|00002510| 5f 43 54 59 50 45 20 6e | 6f 77 20 69 6e 20 6c 6f |_CTYPE n|ow in lo|
|00002520| 63 61 6c 65 20 22 46 72 | 65 6e 63 68 2c 20 43 61 |cale "Fr|ench, Ca|
|00002530| 6e 61 64 61 2c 20 63 6f | 64 65 73 65 74 20 49 53 |nada, co|deset IS|
|00002540| 4f 20 38 38 35 39 2d 31 | 22 0d 08 67 0c 6e 5d 00 |O 8859-1|"..g.n].|
|00002550| 12 6c 5d 00 00 00 00 00 | 08 61 6e 67 12 00 00 00 |.l].....|.ang....|
|00002560| 00 00 00 00 07 68 65 20 | 18 6f 5d 00 18 6f 5d 00 |.....he |.o]..o].|
|00002570| 00 00 00 00 00 80 00 00 | a5 48 00 00 40 00 00 00 |........|.H..@...|
|00002580| 58 3e e8 ff 18 4b e8 ff | 00 00 00 00 0d 08 05 05 |X>...K..|........|
|00002590| 18 70 5d 00 00 00 00 00 | 07 0d 07 05 12 71 5d 00 |.p].....|.....q].|
|000025a0| 12 71 5d 00 00 00 00 00 | 07 6f 72 20 0c 72 5d 00 |.q].....|.or .r].|
|000025b0| 12 71 5d 00 0c 72 5d 00 | 00 00 00 00 00 48 00 00 |.q]..r].|.....H..|
|000025c0| 25 34 00 00 40 80 32 02 | 58 ed e7 ff 68 14 e8 ff |%4..@.2.|X...h...|
|000025d0| 70 1a 00 00 73 65 74 6c | 6f 63 61 6c 65 28 4c 43 |p...setl|ocale(LC|
|000025e0| 5f 43 54 59 50 45 2c 20 | 22 22 29 3b 0d 00 00 00 |_CTYPE, |"");....|
|000025f0| 00 34 00 00 25 58 00 00 | 40 90 c4 05 78 be e7 ff |.4..%X..|@...x...|
|00002600| 88 e5 e7 ff 70 1a 00 00 | 23 20 4c 43 5f 43 54 59 |....p...|# LC_CTY|
|00002610| 50 45 20 6e 6f 77 20 72 | 65 73 65 74 20 74 6f 20 |PE now r|eset to |
|00002620| 64 65 66 61 75 6c 74 20 | 64 65 66 69 6e 65 64 20 |default |defined |
|00002630| 62 79 20 4c 43 5f 41 4c | 4c 2f 4c 43 5f 43 54 59 |by LC_AL|L/LC_CTY|
|00002640| 50 45 2f 4c 41 4e 47 0d | 00 58 00 00 a5 78 00 00 |PE/LANG.|.X...x..|
|00002650| 40 a0 f1 04 98 8f e7 ff | a8 b6 e7 ff 70 1a 00 00 |@.......|....p...|
|00002660| 23 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 76 61 |# enviro|nment va|
|00002670| 72 69 61 62 6c 65 73 2e | 20 20 53 65 65 20 62 65 |riables.| See be|
|00002680| 6c 6f 77 20 66 6f 72 20 | 64 6f 63 75 6d 65 6e 74 |low for |document|
|00002690| 61 74 69 6f 6e 2e 0d 08 | 0c 73 5d 00 12 71 5d 00 |ation...|.s]..q].|
|000026a0| 00 00 00 00 08 20 79 6f | 12 00 00 00 00 00 00 00 |..... yo|........|
|000026b0| 07 6c 69 73 18 74 5d 00 | 18 74 5d 00 00 00 00 00 |.lis.t].|.t].....|
|000026c0| 00 78 00 00 a5 48 00 00 | 40 00 00 00 08 7b e7 ff |.x...H..|@....{..|
|000026d0| c8 87 e7 ff 00 00 00 00 | 0d 08 20 74 18 75 5d 00 |........|.. t.u].|
|000026e0| 00 00 00 00 07 7f 5d 00 | 12 76 5d 00 12 76 5d 00 |......].|.v]..v].|
|000026f0| 00 00 00 00 07 4c 53 4f | 0c 77 5d 00 12 76 5d 00 |.....LSO|.w]..v].|
|00002700| 0c 77 5d 00 00 00 00 00 | 00 48 00 00 01 10 00 00 |.w].....|.H......|
|00002710| 41 80 32 02 00 00 00 00 | 00 10 00 00 02 1c 00 00 |A.2.....|........|
|00002720| 00 04 00 00 00 00 00 00 | 12 76 5d 00 0c 77 5d 00 |........|.v]..w].|
|00002730| 00 00 00 00 00 1c 00 00 | 25 40 00 00 40 80 32 02 |........|%@..@.2.|
|00002740| ee 4c e5 ff fe 73 e5 ff | 70 1a 00 00 16 00 00 00 |.L...s..|p.......|
|00002750| b0 fc 07 00 00 00 00 00 | 23 20 72 65 73 74 6f 72 |........|# restor|
|00002760| 65 20 74 68 65 20 6f 6c | 64 20 6c 6f 63 61 6c 65 |e the ol|d locale|
|00002770| 0d 00 00 00 00 40 00 00 | a5 64 00 00 40 70 05 03 |.....@..|.d..@p..|
|00002780| 0e 1e e5 ff 1e 45 e5 ff | 70 1a 00 00 73 65 74 6c |.....E..|p...setl|
|00002790| 6f 63 61 6c 65 28 4c 43 | 5f 43 54 59 50 45 2c 20 |ocale(LC|_CTYPE, |
|000027a0| 24 6f 6c 64 5f 6c 6f 63 | 61 6c 65 29 3b 0d 08 00 |$old_loc|ale);...|
|000027b0| 0c 78 5d 00 12 76 5d 00 | 00 00 00 00 08 88 5d 00 |.x]..v].|......].|
|000027c0| 12 00 00 00 00 00 00 00 | 07 89 5d 00 18 79 5d 00 |........|..]..y].|
|000027d0| 18 79 5d 00 00 00 00 00 | 00 64 00 00 a5 24 00 00 |.y].....|.d...$..|
|000027e0| 40 00 00 00 7e 09 e5 ff | 3e 16 e5 ff 00 00 00 00 |@...~...|>.......|
|000027f0| 0d 08 05 05 18 7a 5d 00 | 00 00 00 00 00 24 00 00 |.....z].|.....$..|
|00002800| 85 c0 00 00 00 e8 f4 07 | ae b0 e4 ff 8e df e4 ff |........|........|
|00002810| 20 22 00 00 54 68 65 20 | 66 69 72 73 74 20 61 72 | "..The |first ar|
|00002820| 67 75 6d 65 6e 74 20 6f | 66 20 73 65 74 6c 6f 63 |gument o|f setloc|
|00002830| 61 6c 65 28 29 20 67 69 | 76 65 73 20 74 68 65 20 |ale() gi|ves the |
|00002840| 07 73 72 2f 10 7b 5d 00 | 10 7b 5d 00 00 00 00 00 |.sr/.{].|.{].....|
|00002850| 63 61 74 65 67 6f 72 79 | 08 8d 5d 00 10 00 00 00 |category|..].....|
|00002860| 00 00 00 00 2c 20 74 68 | 65 20 73 65 63 6f 6e 64 |...., th|e second|
|00002870| 20 74 68 65 20 07 5d 00 | 10 7c 5d 00 10 7c 5d 00 | the .].|.|]..|].|
|00002880| 00 00 00 00 6c 6f 63 61 | 6c 65 08 05 10 00 00 00 |....loca|le......|
|00002890| 00 00 00 00 2e 20 20 54 | 68 65 20 63 61 74 65 67 |..... T|he categ|
|000028a0| 6f 72 79 20 74 65 6c 6c | 73 20 69 6e 20 77 68 61 |ory tell|s in wha|
|000028b0| 74 20 61 73 70 65 63 74 | 20 00 00 00 00 c0 00 00 |t aspect| .......|
|000028c0| 85 90 00 00 00 94 97 07 | 87 78 e4 ff 67 a7 e4 ff |........|.x..g...|
|000028d0| 20 22 00 00 6f 66 20 64 | 61 74 61 20 70 72 6f 63 | "..of d|ata proc|
|000028e0| 65 73 73 69 6e 67 20 79 | 6f 75 20 77 61 6e 74 20 |essing y|ou want |
|000028f0| 74 6f 20 61 70 70 6c 79 | 20 6c 6f 63 61 6c 65 2d |to apply| locale-|
|00002900| 73 70 65 63 69 66 69 63 | 20 72 75 6c 65 73 2e 20 |specific| rules. |
|00002910| 20 43 61 74 65 67 6f 72 | 79 20 6e 61 6d 65 73 20 | Categor|y names |
|00002920| 61 72 65 20 64 69 73 63 | 75 73 73 65 64 20 69 6e |are disc|ussed in|
|00002930| 20 74 68 65 20 63 68 61 | 70 74 65 72 20 07 00 00 | the cha|pter ...|
|00002940| 10 7d 5d 00 10 7d 5d 00 | 00 00 00 00 00 90 00 00 |.}]..}].|........|
|00002950| 85 80 00 00 00 ec cf 07 | 60 40 e4 ff 40 6f e4 ff |........|`@..@o..|
|00002960| 28 23 00 00 4c 4f 43 41 | 4c 45 20 43 41 54 45 47 |(#..LOCA|LE CATEG|
|00002970| 4f 52 49 45 53 08 69 73 | 10 00 00 00 00 00 00 00 |ORIES.is|........|
|00002980| 20 61 6e 64 20 74 68 65 | 20 73 65 63 74 69 6f 6e | and the| section|
|00002990| 20 6f 6e 20 22 45 4e 56 | 49 52 4f 4e 4d 45 4e 54 | on "ENV|IRONMENT|
|000029a0| 22 2e 20 20 54 68 65 20 | 6c 6f 63 61 6c 65 20 69 |". The |locale i|
|000029b0| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 20 |s the na|me of a |
|000029c0| 63 6f 6c 6c 65 63 74 69 | 6f 6e 20 00 00 80 00 00 |collecti|on .....|
|000029d0| 05 84 00 00 00 00 b0 07 | 39 08 e4 ff 19 37 e4 ff |........|9....7..|
|000029e0| 20 22 00 00 6f 66 20 63 | 75 73 74 6f 6d 69 7a 61 | "..of c|ustomiza|
|000029f0| 74 69 6f 6e 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tion inf|ormation|
|00002a00| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 | corresp|onding t|
|00002a10| 6f 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 63 |o a part|icular c|
|00002a20| 6f 6d 62 69 6e 61 74 69 | 6f 6e 20 6f 66 20 6c 61 |ombinati|on of la|
|00002a30| 6e 67 75 61 67 65 2c 20 | 63 6f 75 6e 74 72 79 20 |nguage, |country |
|00002a40| 6f 72 20 74 65 72 72 69 | 74 6f 72 79 2c 20 00 00 |or terri|tory, ..|
|00002a50| 00 84 00 00 25 84 00 00 | 40 b0 a8 07 12 d0 e3 ff |....%...|@.......|
|00002a60| f2 fe e3 ff 20 22 00 00 | 61 6e 64 20 63 6f 64 65 |.... "..|and code|
|00002a70| 73 65 74 2e 20 20 52 65 | 61 64 20 6f 6e 20 66 6f |set. Re|ad on fo|
|00002a80| 72 20 68 69 6e 74 73 20 | 6f 6e 20 74 68 65 20 6e |r hints |on the n|
|00002a90| 61 6d 69 6e 67 20 6f 66 | 20 6c 6f 63 61 6c 65 73 |aming of| locales|
|00002aa0| 3a 20 6e 6f 74 20 61 6c | 6c 20 73 79 73 74 65 6d |: not al|l system|
|00002ab0| 73 20 6e 61 6d 65 20 6c | 6f 63 61 6c 65 73 20 61 |s name l|ocales a|
|00002ac0| 73 20 69 6e 20 74 68 65 | 20 65 78 61 6d 70 6c 65 |s in the| example|
|00002ad0| 2e 0d 00 00 00 84 00 00 | 05 88 00 00 00 30 c5 07 |........|.....0..|
|00002ae0| 3b 61 e3 ff 1b 90 e3 ff | 20 22 00 00 49 66 20 6e |;a......| "..If n|
|00002af0| 6f 20 73 65 63 6f 6e 64 | 20 61 72 67 75 6d 65 6e |o second| argumen|
|00002b00| 74 20 69 73 20 70 72 6f | 76 69 64 65 64 2c 20 74 |t is pro|vided, t|
|00002b10| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 74 75 |he funct|ion retu|
|00002b20| 72 6e 73 20 61 20 73 74 | 72 69 6e 67 20 6e 61 6d |rns a st|ring nam|
|00002b30| 69 6e 67 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ing the |current |
|00002b40| 6c 6f 63 61 6c 65 20 66 | 6f 72 20 74 68 65 20 63 |locale f|or the c|
|00002b50| 61 74 65 67 6f 72 79 2e | 20 20 00 00 00 88 00 00 |ategory.| ......|
|00002b60| 05 84 00 00 00 4c b8 07 | 14 29 e3 ff f4 57 e3 ff |.....L..|.)...W..|
|00002b70| 20 22 00 00 59 6f 75 20 | 63 61 6e 20 75 73 65 20 | "..You |can use |
|00002b80| 74 68 69 73 20 76 61 6c | 75 65 20 61 73 20 74 68 |this val|ue as th|
|00002b90| 65 20 73 65 63 6f 6e 64 | 20 61 72 67 75 6d 65 6e |e second| argumen|
|00002ba0| 74 20 69 6e 20 61 20 73 | 75 62 73 65 71 75 65 6e |t in a s|ubsequen|
|00002bb0| 74 20 63 61 6c 6c 20 74 | 6f 20 73 65 74 6c 6f 63 |t call t|o setloc|
|00002bc0| 61 6c 65 28 29 2e 20 20 | 49 66 20 61 20 73 65 63 |ale(). |If a sec|
|00002bd0| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |ond argu|ment is |
|00002be0| 00 84 00 00 05 88 00 00 | 00 98 a8 07 ed f0 e2 ff |........|........|
|00002bf0| cd 1f e3 ff 20 22 00 00 | 67 69 76 65 6e 20 61 6e |.... "..|given an|
|00002c00| 64 20 69 74 20 63 6f 72 | 72 65 73 70 6f 6e 64 73 |d it cor|responds|
|00002c10| 20 74 6f 20 61 20 76 61 | 6c 69 64 20 6c 6f 63 61 | to a va|lid loca|
|00002c20| 6c 65 2c 20 74 68 65 20 | 6c 6f 63 61 6c 65 20 66 |le, the |locale f|
|00002c30| 6f 72 20 74 68 65 20 63 | 61 74 65 67 6f 72 79 20 |or the c|ategory |
|00002c40| 69 73 20 73 65 74 20 74 | 6f 20 74 68 61 74 20 76 |is set t|o that v|
|00002c50| 61 6c 75 65 2c 20 61 6e | 64 20 74 68 65 20 66 75 |alue, an|d the fu|
|00002c60| 6e 63 74 69 6f 6e 20 00 | 00 88 00 00 05 80 00 00 |nction .|........|
|00002c70| 00 8c 3c 07 c6 b8 e2 ff | a6 e7 e2 ff 20 22 00 00 |..<.....|.... "..|
|00002c80| 72 65 74 75 72 6e 73 20 | 74 68 65 20 6e 6f 77 2d |returns |the now-|
|00002c90| 63 75 72 72 65 6e 74 20 | 6c 6f 63 61 6c 65 20 76 |current |locale v|
|00002ca0| 61 6c 75 65 2e 20 20 59 | 6f 75 20 63 61 6e 20 75 |alue. Y|ou can u|
|00002cb0| 73 65 20 74 68 69 73 20 | 69 6e 20 61 20 73 75 62 |se this |in a sub|
|00002cc0| 73 65 71 75 65 6e 74 20 | 63 61 6c 6c 20 74 6f 20 |sequent |call to |
|00002cd0| 73 65 74 6c 6f 63 61 6c | 65 28 29 2e 20 20 28 49 |setlocal|e(). (I|
|00002ce0| 6e 20 73 6f 6d 65 20 00 | 00 80 00 00 05 80 00 00 |n some .|........|
|00002cf0| 00 10 ca 07 9f 80 e2 ff | 7f af e2 ff 20 22 00 00 |........|.... "..|
|00002d00| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 73 2c |implemen|tations,|
|00002d10| 20 74 68 65 20 72 65 74 | 75 72 6e 20 76 61 6c 75 | the ret|urn valu|
|00002d20| 65 20 6d 61 79 20 73 6f | 6d 65 74 69 6d 65 73 20 |e may so|metimes |
|00002d30| 64 69 66 66 65 72 20 66 | 72 6f 6d 20 74 68 65 20 |differ f|rom the |
|00002d40| 76 61 6c 75 65 20 79 6f | 75 20 67 61 76 65 20 61 |value yo|u gave a|
|00002d50| 73 20 74 68 65 20 73 65 | 63 6f 6e 64 20 61 72 67 |s the se|cond arg|
|00002d60| 75 6d 65 6e 74 20 2d 20 | 00 80 00 00 25 50 00 00 |ument - |....%P..|
|00002d70| 40 88 a1 03 78 48 e2 ff | 58 77 e2 ff 20 22 00 00 |@...xH..|Xw.. "..|
|00002d80| 74 68 69 6e 6b 20 6f 66 | 20 69 74 20 61 73 20 61 |think of| it as a|
|00002d90| 6e 20 61 6c 69 61 73 20 | 66 6f 72 20 74 68 65 20 |n alias |for the |
|00002da0| 76 61 6c 75 65 20 74 68 | 61 74 20 79 6f 75 20 67 |value th|at you g|
|00002db0| 61 76 65 2e 29 0d 00 00 | 00 50 00 00 05 84 00 00 |ave.)...|.P......|
|00002dc0| 00 00 9e 07 a1 d9 e1 ff | 81 08 e2 ff 20 22 00 00 |........|.... "..|
|00002dd0| 41 73 20 74 68 65 20 65 | 78 61 6d 70 6c 65 20 73 |As the e|xample s|
|00002de0| 68 6f 77 73 2c 20 69 66 | 20 74 68 65 20 73 65 63 |hows, if| the sec|
|00002df0| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |ond argu|ment is |
|00002e00| 61 6e 20 65 6d 70 74 79 | 20 73 74 72 69 6e 67 2c |an empty| string,|
|00002e10| 20 74 68 65 20 63 61 74 | 65 67 6f 72 79 27 73 20 | the cat|egory's |
|00002e20| 6c 6f 63 61 6c 65 20 69 | 73 20 72 65 74 75 72 6e |locale i|s return|
|00002e30| 65 64 20 74 6f 20 74 68 | 65 20 00 00 00 84 00 00 |ed to th|e ......|
|00002e40| 05 84 00 00 00 fc 77 07 | 7a a1 e1 ff 5a d0 e1 ff |......w.|z...Z...|
|00002e50| 20 22 00 00 64 65 66 61 | 75 6c 74 20 73 70 65 63 | "..defa|ult spec|
|00002e60| 69 66 69 65 64 20 62 79 | 20 74 68 65 20 63 6f 72 |ified by| the cor|
|00002e70| 72 65 73 70 6f 6e 64 69 | 6e 67 20 65 6e 76 69 72 |respondi|ng envir|
|00002e80| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 73 |onment v|ariables|
|00002e90| 2e 20 20 47 65 6e 65 72 | 61 6c 6c 79 2c 20 74 68 |. Gener|ally, th|
|00002ea0| 69 73 20 72 65 73 75 6c | 74 73 20 69 6e 20 61 20 |is resul|ts in a |
|00002eb0| 72 65 74 75 72 6e 20 74 | 6f 20 74 68 65 20 00 00 |return t|o the ..|
|00002ec0| 00 84 00 00 05 84 00 00 | 00 14 c9 07 53 69 e1 ff |........|....Si..|
|00002ed0| 33 98 e1 ff 20 22 00 00 | 64 65 66 61 75 6c 74 20 |3... "..|default |
|00002ee0| 77 68 69 63 68 20 77 61 | 73 20 69 6e 20 66 6f 72 |which wa|s in for|
|00002ef0| 63 65 20 77 68 65 6e 20 | 50 65 72 6c 20 73 74 61 |ce when |Perl sta|
|00002f00| 72 74 65 64 20 75 70 3a | 20 63 68 61 6e 67 65 73 |rted up:| changes|
|00002f10| 20 74 6f 20 74 68 65 20 | 65 6e 76 69 72 6f 6e 6d | to the |environm|
|00002f20| 65 6e 74 20 6d 61 64 65 | 20 62 79 20 74 68 65 20 |ent made| by the |
|00002f30| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 61 66 74 65 |applicat|ion afte|
|00002f40| 72 20 00 00 00 84 00 00 | 25 78 00 00 40 38 06 07 |r ......|%x..@8..|
|00002f50| 2c 31 e1 ff 0c 60 e1 ff | 20 22 00 00 73 74 61 72 |,1...`..| "..star|
|00002f60| 74 75 70 20 6d 61 79 20 | 6f 72 20 6d 61 79 20 6e |tup may |or may n|
|00002f70| 6f 74 20 62 65 20 6e 6f | 74 69 63 65 64 2c 20 64 |ot be no|ticed, d|
|00002f80| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 74 68 65 20 |epending| on the |
|00002f90| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00002fa0| 66 20 79 6f 75 72 20 73 | 79 73 74 65 6d 27 73 20 |f your s|ystem's |
|00002fb0| 43 20 6c 69 62 72 61 72 | 79 2e 0d 00 00 78 00 00 |C librar|y....x..|
|00002fc0| 05 88 00 00 00 a0 df 07 | 55 c2 e0 ff 35 f1 e0 ff |........|U...5...|
|00002fd0| 20 22 00 00 49 66 20 74 | 68 65 20 73 65 63 6f 6e | "..If t|he secon|
|00002fe0| 64 20 61 72 67 75 6d 65 | 6e 74 20 64 6f 65 73 20 |d argume|nt does |
|00002ff0| 6e 6f 74 20 63 6f 72 72 | 65 73 70 6f 6e 64 20 74 |not corr|espond t|
|00003000| 6f 20 61 20 76 61 6c 69 | 64 20 6c 6f 63 61 6c 65 |o a vali|d locale|
|00003010| 2c 20 74 68 65 20 6c 6f | 63 61 6c 65 20 66 6f 72 |, the lo|cale for|
|00003020| 20 74 68 65 20 63 61 74 | 65 67 6f 72 79 20 69 73 | the cat|egory is|
|00003030| 20 6e 6f 74 20 63 68 61 | 6e 67 65 64 2c 20 61 6e | not cha|nged, an|
|00003040| 64 20 00 00 00 88 00 00 | a5 5c 00 00 40 b8 ee 01 |d ......|.\..@...|
|00003050| 2e 8a e0 ff 0e b9 e0 ff | 20 22 00 00 74 68 65 20 |........| "..the |
|00003060| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00003070| 20 07 74 65 11 7e 5d 00 | 11 7e 5d 00 00 00 00 00 | .te.~].|.~].....|
|00003080| 75 6e 64 65 66 08 72 20 | 11 00 00 00 00 00 00 00 |undef.r |........|
|00003090| 2e 0d 07 00 14 7f 5d 00 | 14 7f 5d 00 00 00 00 00 |......].|..].....|
|000030a0| 00 5c 00 00 85 a8 00 00 | 00 c0 ad 07 57 1b e0 ff |.\......|....W...|
|000030b0| 37 4a e0 ff 20 22 00 00 | 46 6f 72 20 66 75 72 74 |7J.. "..|For furt|
|000030c0| 68 65 72 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |her info|rmation |
|000030d0| 61 62 6f 75 74 20 74 68 | 65 20 63 61 74 65 67 6f |about th|e catego|
|000030e0| 72 69 65 73 2c 20 63 6f | 6e 73 75 6c 74 20 74 68 |ries, co|nsult th|
|000030f0| 65 20 63 68 61 70 74 65 | 72 20 07 00 10 80 5d 00 |e chapte|r ....].|
|00003100| 14 7f 5d 00 10 80 5d 00 | 00 00 00 00 73 65 74 6c |..]...].|....setl|
|00003110| 6f 63 61 6c 65 28 33 29 | 08 b0 5d 00 10 00 00 00 |ocale(3)|..].....|
|00003120| 14 7f 5d 00 00 00 00 00 | 2e 20 46 6f 72 20 74 68 |..].....|. For th|
|00003130| 65 20 6c 6f 63 61 6c 65 | 73 20 61 76 61 69 6c 61 |e locale|s availa|
|00003140| 62 6c 65 20 69 6e 20 00 | 00 a8 00 00 85 a8 00 00 |ble in .|........|
|00003150| 00 b4 a4 07 30 e3 df ff | 10 12 e0 ff 20 22 00 00 |....0...|.... "..|
|00003160| 79 6f 75 72 20 73 79 73 | 74 65 6d 2c 20 61 6c 73 |your sys|tem, als|
|00003170| 6f 20 63 6f 6e 73 75 6c | 74 20 74 68 65 20 63 68 |o consul|t the ch|
|00003180| 61 70 74 65 72 20 07 6f | 10 81 5d 00 14 7f 5d 00 |apter .o|..]...].|
|00003190| 10 81 5d 00 00 00 00 00 | 73 65 74 6c 6f 63 61 6c |..].....|setlocal|
|000031a0| 65 28 33 29 08 05 05 05 | 10 00 00 00 14 7f 5d 00 |e(3)....|......].|
|000031b0| 00 00 00 00 20 61 6e 64 | 20 73 65 65 20 77 68 65 |.... and| see whe|
|000031c0| 74 68 65 72 20 69 74 20 | 6c 65 61 64 73 20 79 6f |ther it |leads yo|
|000031d0| 75 20 74 6f 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |u to the| list of|
|000031e0| 20 74 68 65 20 61 76 61 | 69 6c 61 62 6c 65 20 00 | the ava|ilable .|
|000031f0| 00 a8 00 00 a5 c8 00 00 | 40 48 8d 06 09 ab df ff |........|@H......|
|00003200| e9 d9 df ff 20 22 00 00 | 6c 6f 63 61 6c 65 73 20 |.... "..|locales |
|00003210| 28 73 65 61 72 63 68 20 | 66 6f 72 20 74 68 65 20 |(search |for the |
|00003220| 07 73 0d 66 11 82 5d 00 | 14 7f 5d 00 11 82 5d 00 |.s.f..].|..]...].|
|00003230| 00 00 00 00 53 45 45 20 | 41 4c 53 4f 08 6c 75 65 |....SEE |ALSO.lue|
|00003240| 11 00 00 00 14 7f 5d 00 | 00 00 00 00 20 73 65 63 |......].|.... sec|
|00003250| 74 69 6f 6e 29 2e 20 20 | 49 66 20 74 68 61 74 20 |tion). |If that |
|00003260| 66 61 69 6c 73 2c 20 74 | 72 79 20 74 68 65 20 66 |fails, t|ry the f|
|00003270| 6f 6c 6c 6f 77 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 |ollowing| command|
|00003280| 20 6c 69 6e 65 73 3a 0d | 08 05 05 05 14 00 00 00 | lines:.|........|
|00003290| 00 00 00 00 07 05 05 05 | 12 83 5d 00 12 83 5d 00 |........|..]...].|
|000032a0| 00 00 00 00 07 08 05 05 | 0c 84 5d 00 12 83 5d 00 |........|..]...].|
|000032b0| 0c 84 5d 00 00 00 00 00 | 00 c8 00 00 a5 4c 00 00 |..].....|.....L..|
|000032c0| 40 f0 d2 00 02 44 df ff | 12 6b df ff 70 1a 00 00 |@....D..|.k..p...|
|000032d0| 6c 6f 63 61 6c 65 20 2d | 61 0d 08 73 0c 85 5d 00 |locale -|a..s..].|
|000032e0| 12 83 5d 00 00 00 00 00 | 08 00 00 00 12 00 00 00 |..].....|........|
|000032f0| 00 00 00 00 07 63 65 20 | 18 86 5d 00 18 86 5d 00 |.....ce |..]...].|
|00003300| 00 00 00 00 00 4c 00 00 | a5 48 00 00 40 00 00 00 |.....L..|.H..@...|
|00003310| 72 2f df ff 32 3c df ff | 00 00 00 00 0d 08 68 61 |r/..2<..|......ha|
|00003320| 18 87 5d 00 00 00 00 00 | 07 72 6d 61 12 88 5d 00 |..].....|.rma..].|
|00003330| 12 88 5d 00 00 00 00 00 | 07 65 20 6e 0c 89 5d 00 |..].....|.e n..].|
|00003340| 12 88 5d 00 0c 89 5d 00 | 00 00 00 00 00 48 00 00 |..]...].|.....H..|
|00003350| a5 4c 00 00 40 10 a4 00 | 72 de de ff 82 05 df ff |.L..@...|r.......|
|00003360| 70 1a 00 00 6e 6c 73 69 | 6e 66 6f 0d 08 00 00 00 |p...nlsi|nfo.....|
|00003370| 0c 8a 5d 00 12 88 5d 00 | 00 00 00 00 08 bf 5d 00 |..]...].|......].|
|00003380| 12 00 00 00 00 00 00 00 | 07 61 6e 64 18 8b 5d 00 |........|.and..].|
|00003390| 18 8b 5d 00 00 00 00 00 | 00 4c 00 00 a5 48 00 00 |..].....|.L...H..|
|000033a0| 40 00 00 00 e2 c9 de ff | a2 d6 de ff 00 00 00 00 |@.......|........|
|000033b0| 0d 08 6f 72 18 8c 5d 00 | 00 00 00 00 07 67 20 76 |..or..].|.....g v|
|000033c0| 12 8d 5d 00 12 8d 5d 00 | 00 00 00 00 07 68 65 20 |..]...].|.....he |
|000033d0| 0c 8e 5d 00 12 8d 5d 00 | 0c 8e 5d 00 00 00 00 00 |..]...].|..].....|
|000033e0| 00 48 00 00 a5 58 00 00 | 40 50 bd 01 e2 78 de ff |.H...X..|@P...x..|
|000033f0| f2 9f de ff 70 1a 00 00 | 6c 73 20 2f 75 73 72 2f |....p...|ls /usr/|
|00003400| 6c 69 62 2f 6e 6c 73 2f | 6c 6f 63 0d 08 00 00 00 |lib/nls/|loc.....|
|00003410| 0c 8f 5d 00 12 8d 5d 00 | 00 00 00 00 08 ff 5c 00 |..]...].|......\.|
|00003420| 12 00 00 00 00 00 00 00 | 07 6f 63 61 18 90 5d 00 |........|.oca..].|
|00003430| 18 90 5d 00 00 00 00 00 | 00 58 00 00 a5 48 00 00 |..].....|.X...H..|
|00003440| 40 00 00 00 52 64 de ff | 12 71 de ff 00 00 00 00 |@...Rd..|.q......|
|00003450| 0d 08 61 6c 18 91 5d 00 | 00 00 00 00 07 6e 64 20 |..al..].|.....nd |
|00003460| 12 92 5d 00 12 92 5d 00 | 00 00 00 00 07 0d 08 05 |..]...].|........|
|00003470| 0c 93 5d 00 12 92 5d 00 | 0c 93 5d 00 00 00 00 00 |..]...].|..].....|
|00003480| 00 48 00 00 a5 54 00 00 | 40 e0 a5 01 52 13 de ff |.H...T..|@...R...|
|00003490| 62 3a de ff 70 1a 00 00 | 6c 73 20 2f 75 73 72 2f |b:..p...|ls /usr/|
|000034a0| 6c 69 62 2f 6c 6f 63 61 | 6c 65 0d 08 0c 94 5d 00 |lib/loca|le....].|
|000034b0| 12 92 5d 00 00 00 00 00 | 08 65 63 69 12 00 00 00 |..].....|.eci....|
|000034c0| 00 00 00 00 07 6e 73 20 | 18 95 5d 00 18 95 5d 00 |.....ns |..]...].|
|000034d0| 00 00 00 00 00 54 00 00 | a5 48 00 00 40 00 00 00 |.....T..|.H..@...|
|000034e0| c2 fe dd ff 82 0b de ff | 00 00 00 00 0d 08 68 61 |........|......ha|
|000034f0| 18 96 5d 00 00 00 00 00 | 07 75 70 70 12 97 5d 00 |..].....|.upp..].|
|00003500| 12 97 5d 00 00 00 00 00 | 07 6c 65 6e 0c 98 5d 00 |..].....|.len..].|
|00003510| 12 97 5d 00 0c 98 5d 00 | 00 00 00 00 00 48 00 00 |..]...].|.....H..|
|00003520| a5 54 00 00 40 90 5f 01 | c2 ad dd ff d2 d4 dd ff |.T..@._.|........|
|00003530| 70 1a 00 00 6c 73 20 2f | 75 73 72 2f 6c 69 62 2f |p...ls /|usr/lib/|
|00003540| 6e 6c 73 0d 08 74 22 2e | 0c 99 5d 00 12 97 5d 00 |nls..t".|..]...].|
|00003550| 00 00 00 00 08 6d 70 6f | 12 00 00 00 00 00 00 00 |.....mpo|........|
|00003560| 07 75 65 73 18 9a 5d 00 | 18 9a 5d 00 00 00 00 00 |.ues..].|..].....|
|00003570| 00 54 00 00 a5 24 00 00 | 40 00 00 00 32 99 dd ff |.T...$..|@...2...|
|00003580| f2 a5 dd ff 00 00 00 00 | 0d 08 45 6e 18 9b 5d 00 |........|..En..].|
|00003590| 00 00 00 00 00 24 00 00 | a5 70 00 00 40 94 e6 03 |.....$..|.p..@...|
|000035a0| 62 40 dd ff 42 6f dd ff | 20 22 00 00 61 6e 64 20 |b@..Bo..| "..and |
|000035b0| 73 65 65 20 77 68 65 74 | 68 65 72 20 74 68 65 79 |see whet|her they|
|000035c0| 20 6c 69 73 74 20 73 6f | 6d 65 74 68 69 6e 67 20 | list so|mething |
|000035d0| 72 65 73 65 6d 62 6c 69 | 6e 67 20 74 68 65 73 65 |resembli|ng these|
|000035e0| 0d 07 08 05 12 9c 5d 00 | 12 9c 5d 00 00 00 00 00 |......].|..].....|
|000035f0| 07 6e 65 73 0c 9d 5d 00 | 12 9c 5d 00 0c 9d 5d 00 |.nes..].|..]...].|
|00003600| 00 00 00 00 00 70 00 00 | 25 50 00 00 40 10 09 05 |.....p..|%P..@...|
|00003610| 5b d9 dc ff 6b 00 dd ff | 70 1a 00 00 65 6e 5f 55 |[...k...|p...en_U|
|00003620| 53 2e 49 53 4f 38 38 35 | 39 2d 31 20 20 20 20 20 |S.ISO885|9-1 |
|00003630| 64 65 5f 44 45 2e 49 53 | 4f 38 38 35 39 2d 31 20 |de_DE.IS|O8859-1 |
|00003640| 20 20 20 20 72 75 5f 52 | 55 2e 49 53 4f 38 38 35 | ru_R|U.ISO885|
|00003650| 39 2d 35 0d 00 50 00 00 | 25 48 00 00 40 b0 1e 04 |9-5..P..|%H..@...|
|00003660| 7b aa dc ff 8b d1 dc ff | 70 1a 00 00 65 6e 5f 55 |{.......|p...en_U|
|00003670| 53 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |S | |
|00003680| 64 65 5f 44 45 20 20 20 | 20 20 20 20 20 20 20 20 |de_DE | |
|00003690| 20 20 20 20 72 75 5f 52 | 55 0d 00 00 00 48 00 00 | ru_R|U....H..|
|000036a0| 25 44 00 00 40 60 d8 03 | 9b 7b dc ff ab a2 dc ff |%D..@`..|.{......|
|000036b0| 70 1a 00 00 65 6e 20 20 | 20 20 20 20 20 20 20 20 |p...en | |
|000036c0| 20 20 20 20 20 20 20 20 | 64 65 20 20 20 20 20 20 | |de |
|000036d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 75 0d 00 | | ru..|
|000036e0| 00 44 00 00 25 48 00 00 | 40 90 4d 04 bb 4c dc ff |.D..%H..|@.M..L..|
|000036f0| cb 73 dc ff 70 1a 00 00 | 65 6e 67 6c 69 73 68 20 |.s..p...|english |
|00003700| 20 20 20 20 20 20 20 20 | 20 20 20 20 67 65 72 6d | | germ|
|00003710| 61 6e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |an | |
|00003720| 72 75 73 73 69 61 6e 0d | 00 48 00 00 a5 7c 00 00 |russian.|.H...|..|
|00003730| 40 80 20 05 db 1d dc ff | eb 44 dc ff 70 1a 00 00 |@. .....|.D..p...|
|00003740| 65 6e 67 6c 69 73 68 2e | 69 73 6f 38 38 35 39 31 |english.|iso88591|
|00003750| 20 20 20 20 67 65 72 6d | 61 6e 2e 69 73 6f 38 38 | germ|an.iso88|
|00003760| 35 39 31 20 20 20 20 20 | 72 75 73 73 69 61 6e 2e |591 |russian.|
|00003770| 69 73 6f 38 38 35 39 35 | 0d 08 68 20 0c 9e 5d 00 |iso88595|..h ..].|
|00003780| 12 9c 5d 00 00 00 00 00 | 08 6e 20 61 12 00 00 00 |..].....|.n a....|
|00003790| 00 00 00 00 07 72 74 69 | 18 9f 5d 00 18 9f 5d 00 |.....rti|..]...].|
|000037a0| 00 00 00 00 00 7c 00 00 | a5 24 00 00 40 00 00 00 |.....|..|.$..@...|
|000037b0| 4b 09 dc ff 0b 16 dc ff | 00 00 00 00 0d 08 05 05 |K.......|........|
|000037c0| 18 a0 5d 00 00 00 00 00 | 00 24 00 00 05 88 00 00 |..].....|.$......|
|000037d0| 00 40 c7 07 7b b0 db ff | 5b df db ff 20 22 00 00 |.@..{...|[... "..|
|000037e0| 53 61 64 6c 79 2c 20 65 | 76 65 6e 20 74 68 6f 75 |Sadly, e|ven thou|
|000037f0| 67 68 20 74 68 65 20 63 | 61 6c 6c 69 6e 67 20 69 |gh the c|alling i|
|00003800| 6e 74 65 72 66 61 63 65 | 20 66 6f 72 20 73 65 74 |nterface| for set|
|00003810| 6c 6f 63 61 6c 65 28 29 | 20 68 61 73 20 62 65 65 |locale()| has bee|
|00003820| 6e 20 73 74 61 6e 64 61 | 72 64 69 7a 65 64 2c 20 |n standa|rdized, |
|00003830| 74 68 65 20 6e 61 6d 65 | 73 20 6f 66 20 74 68 65 |the name|s of the|
|00003840| 20 6c 6f 63 61 6c 65 73 | 20 61 6e 64 20 00 00 00 | locales| and ...|
|00003850| 00 88 00 00 85 90 00 00 | 00 e0 78 07 54 78 db ff |........|..x.Tx..|
|00003860| 34 a7 db ff 20 22 00 00 | 74 68 65 20 64 69 72 65 |4... "..|the dire|
|00003870| 63 74 6f 72 69 65 73 20 | 77 68 65 72 65 20 74 68 |ctories |where th|
|00003880| 65 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |e config|uration |
|00003890| 69 73 2c 20 68 61 76 65 | 20 6e 6f 74 2e 20 20 54 |is, have| not. T|
|000038a0| 68 65 20 62 61 73 69 63 | 20 66 6f 72 6d 20 6f 66 |he basic| form of|
|000038b0| 20 74 68 65 20 6e 61 6d | 65 20 69 73 20 07 72 61 | the nam|e is .ra|
|000038c0| 11 a1 5d 00 11 a1 5d 00 | 00 00 00 00 6c 61 6e 67 |..]...].|....lang|
|000038d0| 75 61 67 65 5f 63 6f 75 | 6e 74 72 79 2f 00 00 00 |uage_cou|ntry/...|
|000038e0| 00 90 00 00 a5 98 00 00 | 40 ac 5b 04 2d 40 db ff |........|@.[.-@..|
|000038f0| 0d 6f db ff f8 22 00 00 | 74 65 72 72 69 74 6f 72 |.o..."..|territor|
|00003900| 79 08 5d 00 11 00 00 00 | 00 00 00 00 07 05 05 05 |y.].....|........|
|00003910| 10 a2 5d 00 10 a2 5d 00 | 00 00 00 00 2e 08 64 65 |..]...].|......de|
|00003920| 10 00 00 00 00 00 00 00 | 07 00 00 00 11 a3 5d 00 |........|......].|
|00003930| 11 a3 5d 00 00 00 00 00 | 63 6f 64 65 73 65 74 08 |..].....|codeset.|
|00003940| 11 00 00 00 00 00 00 00 | 2c 20 62 75 74 20 74 68 |........|, but th|
|00003950| 65 20 6c 61 74 74 65 72 | 20 70 61 72 74 73 20 61 |e latter| parts a|
|00003960| 72 65 20 6e 6f 74 20 61 | 6c 77 61 79 73 20 70 72 |re not a|lways pr|
|00003970| 65 73 65 6e 74 2e 0d 00 | 00 98 00 00 05 80 00 00 |esent...|........|
|00003980| 00 a8 8c 07 56 d1 da ff | 36 00 db ff 20 22 00 00 |....V...|6... "..|
|00003990| 54 77 6f 20 73 70 65 63 | 69 61 6c 20 6c 6f 63 61 |Two spec|ial loca|
|000039a0| 6c 65 73 20 61 72 65 20 | 77 6f 72 74 68 20 70 61 |les are |worth pa|
|000039b0| 72 74 69 63 75 6c 61 72 | 20 6d 65 6e 74 69 6f 6e |rticular| mention|
|000039c0| 3a 20 22 43 22 20 61 6e | 64 20 22 50 4f 53 49 58 |: "C" an|d "POSIX|
|000039d0| 22 2e 20 43 75 72 72 65 | 6e 74 6c 79 20 74 68 65 |". Curre|ntly the|
|000039e0| 73 65 20 61 72 65 20 65 | 66 66 65 63 74 69 76 65 |se are e|ffective|
|000039f0| 6c 79 20 74 68 65 20 00 | 00 80 00 00 05 84 00 00 |ly the .|........|
|00003a00| 00 c0 a7 07 2f 99 da ff | 0f c8 da ff 20 22 00 00 |..../...|.... "..|
|00003a10| 73 61 6d 65 20 6c 6f 63 | 61 6c 65 3a 20 74 68 65 |same loc|ale: the|
|00003a20| 20 64 69 66 66 65 72 65 | 6e 63 65 20 69 73 20 6d | differe|nce is m|
|00003a30| 61 69 6e 6c 79 20 74 68 | 61 74 20 74 68 65 20 66 |ainly th|at the f|
|00003a40| 69 72 73 74 20 6f 6e 65 | 20 69 73 20 64 65 66 69 |irst one| is defi|
|00003a50| 6e 65 64 20 62 79 20 74 | 68 65 20 43 20 73 74 61 |ned by t|he C sta|
|00003a60| 6e 64 61 72 64 20 61 6e | 64 20 74 68 65 20 73 65 |ndard an|d the se|
|00003a70| 63 6f 6e 64 20 62 79 20 | 74 68 65 20 00 84 00 00 |cond by |the ....|
|00003a80| 85 9c 00 00 00 3c a1 07 | 08 61 da ff e8 8f da ff |.....<..|.a......|
|00003a90| 20 22 00 00 50 4f 53 49 | 58 20 73 74 61 6e 64 61 | "..POSI|X standa|
|00003aa0| 72 64 2e 20 20 57 68 61 | 74 20 74 68 65 79 20 64 |rd. Wha|t they d|
|00003ab0| 65 66 69 6e 65 20 69 73 | 20 74 68 65 20 07 79 6f |efine is| the .yo|
|00003ac0| 10 a4 5d 00 10 a4 5d 00 | 00 00 00 00 64 65 66 61 |..]...].|....defa|
|00003ad0| 75 6c 74 20 6c 6f 63 61 | 6c 65 08 20 10 00 00 00 |ult loca|le. ....|
|00003ae0| 00 00 00 00 20 69 6e 20 | 77 68 69 63 68 20 65 76 |.... in |which ev|
|00003af0| 65 72 79 20 70 72 6f 67 | 72 61 6d 20 73 74 61 72 |ery prog|ram star|
|00003b00| 74 73 20 69 6e 20 74 68 | 65 20 61 62 73 65 6e 63 |ts in th|e absenc|
|00003b10| 65 20 6f 66 20 00 00 00 | 00 9c 00 00 05 88 00 00 |e of ...|........|
|00003b20| 00 10 cd 07 e1 28 da ff | c1 57 da ff 20 22 00 00 |.....(..|.W.. "..|
|00003b30| 6c 6f 63 61 6c 65 20 69 | 6e 66 6f 72 6d 61 74 69 |locale i|nformati|
|00003b40| 6f 6e 20 69 6e 20 69 74 | 73 20 65 6e 76 69 72 6f |on in it|s enviro|
|00003b50| 6e 6d 65 6e 74 2e 20 20 | 28 54 68 65 20 64 65 66 |nment. |(The def|
|00003b60| 61 75 6c 74 20 64 65 66 | 61 75 6c 74 20 6c 6f 63 |ault def|ault loc|
|00003b70| 61 6c 65 2c 20 69 66 20 | 79 6f 75 20 77 69 6c 6c |ale, if |you will|
|00003b80| 2e 29 20 20 49 74 73 20 | 6c 61 6e 67 75 61 67 65 |.) Its |language|
|00003b90| 20 69 73 20 28 41 6d 65 | 72 69 63 61 6e 29 20 00 | is (Ame|rican) .|
|00003ba0| 00 88 00 00 01 10 00 00 | 40 b0 f5 02 00 00 00 00 |........|@.......|
|00003bb0| 00 10 00 00 02 14 00 00 | 9c 05 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 14 00 00 | a5 5c 00 00 40 b0 f5 02 |........|.\..@...|
|00003bd0| 6d 45 d8 ff 4d 74 d8 ff | 20 22 00 00 16 00 00 00 |mE..Mt..| "......|
|00003be0| b0 fc 07 00 00 00 00 00 | 45 6e 67 6c 69 73 68 20 |........|English |
|00003bf0| 61 6e 64 20 69 74 73 20 | 63 68 61 72 61 63 74 65 |and its |characte|
|00003c00| 72 20 63 6f 64 65 73 65 | 74 20 41 53 43 49 49 2e |r codese|t ASCII.|
|00003c10| 0d 07 61 70 10 a5 5d 00 | 10 a5 5d 00 00 00 00 00 |..ap..].|..].....|
|00003c20| 00 5c 00 00 85 8c 00 00 | 00 24 ec 07 96 d6 d7 ff |.\......|.$......|
|00003c30| 76 05 d8 ff 28 23 00 00 | 4e 4f 54 45 08 1b 5d 00 |v...(#..|NOTE..].|
|00003c40| 10 00 00 00 00 00 00 00 | 3a 20 4e 6f 74 20 61 6c |........|: Not al|
|00003c50| 6c 20 73 79 73 74 65 6d | 73 20 68 61 76 65 20 74 |l system|s have t|
|00003c60| 68 65 20 22 50 4f 53 49 | 58 22 20 6c 6f 63 61 6c |he "POSI|X" local|
|00003c70| 65 20 28 6e 6f 74 20 61 | 6c 6c 20 73 79 73 74 65 |e (not a|ll syste|
|00003c80| 6d 73 20 61 72 65 20 50 | 4f 53 49 58 2d 63 6f 6e |ms are P|OSIX-con|
|00003c90| 66 6f 72 6d 61 6e 74 29 | 2c 20 73 6f 20 75 73 65 |formant)|, so use|
|00003ca0| 20 22 43 22 20 77 68 65 | 6e 20 00 00 00 8c 00 00 | "C" whe|n ......|
|00003cb0| a5 5c 00 00 40 58 8f 03 | 6f 9e d7 ff 4f cd d7 ff |.\..@X..|o...O...|
|00003cc0| 20 22 00 00 79 6f 75 20 | 6e 65 65 64 20 65 78 70 | "..you |need exp|
|00003cd0| 6c 69 63 69 74 6c 79 20 | 74 6f 20 73 70 65 63 69 |licitly |to speci|
|00003ce0| 66 79 20 74 68 69 73 20 | 64 65 66 61 75 6c 74 20 |fy this |default |
|00003cf0| 6c 6f 63 61 6c 65 2e 0d | 07 6f 66 20 0a a6 5d 00 |locale..|.of ..].|
|00003d00| 0a a6 5d 00 00 00 00 00 | 00 5c 00 00 a5 3c 00 00 |..].....|.\...<..|
|00003d10| 40 7e 3e 02 c8 27 d7 ff | 78 5e d7 ff 18 2b 00 00 |@~>..'..|x^...+..|
|00003d20| 54 68 65 20 6c 6f 63 61 | 6c 65 63 6f 6e 76 20 66 |The loca|leconv f|
|00003d30| 75 6e 63 74 69 6f 6e 0d | 08 21 5d 00 0a a7 5d 00 |unction.|.!]...].|
|00003d40| 00 00 00 00 00 3c 00 00 | 05 84 00 00 00 e0 e1 07 |.....<..|........|
|00003d50| 93 d2 d6 ff 73 01 d7 ff | 20 22 00 00 54 68 65 20 |....s...| "..The |
|00003d60| 50 4f 53 49 58 3a 3a 6c | 6f 63 61 6c 65 63 6f 6e |POSIX::l|ocalecon|
|00003d70| 76 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 61 6c 6c |v() func|tion all|
|00003d80| 6f 77 73 20 79 6f 75 20 | 74 6f 20 67 65 74 20 70 |ows you |to get p|
|00003d90| 61 72 74 69 63 75 6c 61 | 72 73 20 6f 66 20 74 68 |articula|rs of th|
|00003da0| 65 20 6c 6f 63 61 6c 65 | 2d 64 65 70 65 6e 64 65 |e locale|-depende|
|00003db0| 6e 74 20 6e 75 6d 65 72 | 69 63 20 66 6f 72 6d 61 |nt numer|ic forma|
|00003dc0| 74 74 69 6e 67 20 00 00 | 00 84 00 00 85 ac 00 00 |tting ..|........|
|00003dd0| 00 04 85 07 6c 9a d6 ff | 4c c9 d6 ff 20 22 00 00 |....l...|L... "..|
|00003de0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 73 70 65 63 |informat|ion spec|
|00003df0| 69 66 69 65 64 20 62 79 | 20 74 68 65 20 63 75 72 |ified by| the cur|
|00003e00| 72 65 6e 74 20 07 20 61 | 0e a8 5d 00 0e a8 5d 00 |rent . a|..]...].|
|00003e10| 00 00 00 00 4c 43 5f 4e | 55 4d 45 52 49 43 08 69 |....LC_N|UMERIC.i|
|00003e20| 0e a9 5d 00 00 00 00 00 | 20 61 6e 64 20 07 0d 09 |..].....| and ...|
|00003e30| 0e aa 5d 00 0e aa 5d 00 | 00 00 00 00 4c 43 5f 4d |..]...].|....LC_M|
|00003e40| 4f 4e 45 54 41 52 59 08 | 0e ab 5d 00 00 00 00 00 |ONETARY.|..].....|
|00003e50| 20 6c 6f 63 61 6c 65 73 | 2e 20 20 28 49 66 20 79 | locales|. (If y|
|00003e60| 6f 75 20 6a 75 73 74 20 | 77 61 6e 74 20 74 68 65 |ou just |want the|
|00003e70| 20 00 00 00 00 ac 00 00 | 05 88 00 00 00 6c e6 07 | .......|.....l..|
|00003e80| 45 62 d6 ff 25 91 d6 ff | 20 22 00 00 6e 61 6d 65 |Eb..%...| "..name|
|00003e90| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|00003ea0| 6c 6f 63 61 6c 65 20 66 | 6f 72 20 61 20 70 61 72 |locale f|or a par|
|00003eb0| 74 69 63 75 6c 61 72 20 | 63 61 74 65 67 6f 72 79 |ticular |category|
|00003ec0| 2c 20 75 73 65 20 50 4f | 53 49 58 3a 3a 73 65 74 |, use PO|SIX::set|
|00003ed0| 6c 6f 63 61 6c 65 28 29 | 20 77 69 74 68 20 61 20 |locale()| with a |
|00003ee0| 73 69 6e 67 6c 65 20 70 | 61 72 61 6d 65 74 65 72 |single p|arameter|
|00003ef0| 20 2d 20 73 65 65 20 74 | 68 65 20 00 00 88 00 00 | - see t|he .....|
|00003f00| a5 74 00 00 40 7c 66 02 | 1e 2a d6 ff fe 58 d6 ff |.t..@|f.|.*...X..|
|00003f10| 20 22 00 00 63 68 61 70 | 74 65 72 20 07 68 65 20 | "..chap|ter .he |
|00003f20| 10 ac 5d 00 10 ac 5d 00 | 00 00 00 00 54 68 65 20 |..]...].|....The |
|00003f30| 73 65 74 6c 6f 63 61 6c | 65 20 66 75 6e 63 74 69 |setlocal|e functi|
|00003f40| 6f 6e 08 00 10 00 00 00 | 00 00 00 00 2e 29 0d 07 |on......|.....)..|
|00003f50| 12 ad 5d 00 12 ad 5d 00 | 00 00 00 00 07 69 67 6e |..]...].|.....ign|
|00003f60| 0c ae 5d 00 12 ad 5d 00 | 0c ae 5d 00 00 00 00 00 |..]...].|..].....|
|00003f70| 00 74 00 00 a5 5c 00 00 | 40 10 1b 02 17 c3 d5 ff |.t...\..|@.......|
|00003f80| 27 ea d5 ff 70 1a 00 00 | 75 73 65 20 50 4f 53 49 |'...p...|use POSI|
|00003f90| 58 20 71 77 28 6c 6f 63 | 61 6c 65 5f 68 29 3b 0d |X qw(loc|ale_h);.|
|00003fa0| 08 29 5d 00 0c af 5d 00 | 12 ad 5d 00 00 00 00 00 |.)]...].|..].....|
|00003fb0| 08 65 6c 6c 12 00 00 00 | 00 00 00 00 07 20 75 73 |.ell....|..... us|
|00003fc0| 18 b0 5d 00 18 b0 5d 00 | 00 00 00 00 00 5c 00 00 |..]...].|.....\..|
|00003fd0| a5 48 00 00 40 00 00 00 | 87 ae d5 ff 47 bb d5 ff |.H..@...|....G...|
|00003fe0| 00 00 00 00 0d 08 6e 73 | 18 b1 5d 00 00 00 00 00 |......ns|..].....|
|00003ff0| 07 00 00 00 12 b2 5d 00 | 12 b2 5d 00 00 00 00 00 |......].|..].....|
|00004000| 07 00 00 00 0c b3 5d 00 | 12 b2 5d 00 0c b3 5d 00 |......].|..]...].|
|00004010| 00 00 00 00 00 48 00 00 | 25 50 00 00 40 c0 c2 04 |.....H..|%P..@...|
|00004020| 87 5d d5 ff 97 84 d5 ff | 70 1a 00 00 23 20 47 65 |.]......|p...# Ge|
|00004030| 74 20 61 20 72 65 66 65 | 72 65 6e 63 65 20 74 6f |t a refe|rence to|
|00004040| 20 61 20 68 61 73 68 20 | 6f 66 20 6c 6f 63 61 6c | a hash |of local|
|00004050| 65 2d 64 65 70 65 6e 64 | 65 6e 74 20 69 6e 66 6f |e-depend|ent info|
|00004060| 0d 00 00 00 00 50 00 00 | a5 60 00 00 40 20 bf 02 |.....P..|.`..@ ..|
|00004070| a7 2e d5 ff b7 55 d5 ff | 70 1a 00 00 24 6c 6f 63 |.....U..|p...$loc|
|00004080| 61 6c 65 5f 76 61 6c 75 | 65 73 20 3d 20 6c 6f 63 |ale_valu|es = loc|
|00004090| 61 6c 65 63 6f 6e 76 28 | 29 3b 0d 08 0c b4 5d 00 |aleconv(|);....].|
|000040a0| 12 b2 5d 00 00 00 00 00 | 08 00 00 00 12 00 00 00 |..].....|........|
|000040b0| 00 00 00 00 07 2c 5d 00 | 18 b5 5d 00 18 b5 5d 00 |.....,].|..]...].|
|000040c0| 00 00 00 00 00 60 00 00 | a5 48 00 00 40 00 00 00 |.....`..|.H..@...|
|000040d0| 17 1a d5 ff d7 26 d5 ff | 00 00 00 00 0d 08 5d 00 |.....&..|......].|
|000040e0| 18 b6 5d 00 00 00 00 00 | 07 74 08 05 12 b7 5d 00 |..].....|.t....].|
|000040f0| 12 b7 5d 00 00 00 00 00 | 07 20 61 6e 0c b8 5d 00 |..].....|. an..].|
|00004100| 12 b7 5d 00 0c b8 5d 00 | 00 00 00 00 00 48 00 00 |..]...].|.....H..|
|00004110| 25 3c 00 00 40 e0 1c 03 | 17 c9 d4 ff 27 f0 d4 ff |%<..@...|....'...|
|00004120| 70 1a 00 00 23 20 4f 75 | 74 70 75 74 20 73 6f 72 |p...# Ou|tput sor|
|00004130| 74 65 64 20 6c 69 73 74 | 20 6f 66 20 74 68 65 20 |ted list| of the |
|00004140| 76 61 6c 75 65 73 0d 00 | 00 3c 00 00 25 3c 00 00 |values..|.<..%<..|
|00004150| 40 70 05 03 37 9a d4 ff | 47 c1 d4 ff 70 1a 00 00 |@p..7...|G...p...|
|00004160| 66 6f 72 20 28 73 6f 72 | 74 20 6b 65 79 73 20 25 |for (sor|t keys %|
|00004170| 24 6c 6f 63 61 6c 65 5f | 76 61 6c 75 65 73 29 20 |$locale_|values) |
|00004180| 7b 0d 00 00 00 3c 00 00 | 25 4c 00 00 40 50 ab 04 |{....<..|%L..@P..|
|00004190| 57 6b d4 ff 67 92 d4 ff | 70 1a 00 00 20 20 20 20 |Wk..g...|p... |
|000041a0| 70 72 69 6e 74 66 20 22 | 25 2d 32 30 73 20 3d 20 |printf "|%-20s = |
|000041b0| 25 73 5c 6e 22 2c 20 24 | 5f 2c 20 24 6c 6f 63 61 |%s\n", $|_, $loca|
|000041c0| 6c 65 5f 76 61 6c 75 65 | 73 2d 3e 7b 24 5f 7d 0d |le_value|s->{$_}.|
|000041d0| 00 4c 00 00 a5 44 00 00 | 40 70 17 00 77 3c d4 ff |.L...D..|@p..w<..|
|000041e0| 87 63 d4 ff 70 1a 00 00 | 7d 0d 08 00 0c b9 5d 00 |.c..p...|}.....].|
|000041f0| 12 b7 5d 00 00 00 00 00 | 08 09 09 07 12 00 00 00 |..].....|........|
|00004200| 00 00 00 00 07 3c 5d 00 | 18 ba 5d 00 18 ba 5d 00 |.....<].|..]...].|
|00004210| 00 00 00 00 00 44 00 00 | a5 24 00 00 40 00 00 00 |.....D..|.$..@...|
|00004220| e7 27 d4 ff a7 34 d4 ff | 00 00 00 00 0d 08 5d 00 |.'...4..|......].|
|00004230| 18 bb 5d 00 00 00 00 00 | 00 24 00 00 85 9c 00 00 |..].....|.$......|
|00004240| 00 24 a1 07 17 cf d3 ff | f7 fd d3 ff 20 22 00 00 |.$......|.... "..|
|00004250| 6c 6f 63 61 6c 65 63 6f | 6e 76 28 29 20 74 61 6b |localeco|nv() tak|
|00004260| 65 73 20 6e 6f 20 61 72 | 67 75 6d 65 6e 74 73 2c |es no ar|guments,|
|00004270| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 07 20 74 | and ret|urns . t|
|00004280| 10 bc 5d 00 10 bc 5d 00 | 00 00 00 00 61 20 72 65 |..]...].|....a re|
|00004290| 66 65 72 65 6e 63 65 20 | 74 6f 08 6f 10 00 00 00 |ference |to.o....|
|000042a0| 00 00 00 00 20 61 20 68 | 61 73 68 2e 20 54 68 65 |.... a h|ash. The|
|000042b0| 20 6b 65 79 73 20 6f 66 | 20 74 68 69 73 20 68 61 | keys of| this ha|
|000042c0| 73 68 20 61 72 65 20 66 | 6f 72 6d 61 74 74 69 6e |sh are f|ormattin|
|000042d0| 67 20 00 00 00 9c 00 00 | 85 a4 00 00 00 54 68 07 |g ......|.....Th.|
|000042e0| f0 96 d3 ff d0 c5 d3 ff | 20 22 00 00 76 61 72 69 |........| "..vari|
|000042f0| 61 62 6c 65 20 6e 61 6d | 65 73 20 73 75 63 68 20 |able nam|es such |
|00004300| 61 73 20 07 0e bd 5d 00 | 0e bd 5d 00 00 00 00 00 |as ...].|..].....|
|00004310| 64 65 63 69 6d 61 6c 5f | 70 6f 69 6e 74 08 64 73 |decimal_|point.ds|
|00004320| 0e be 5d 00 00 00 00 00 | 20 61 6e 64 20 07 6f 72 |..].....| and .or|
|00004330| 0e bf 5d 00 0e bf 5d 00 | 00 00 00 00 74 68 6f 75 |..]...].|....thou|
|00004340| 73 61 6e 64 73 5f 73 65 | 70 08 65 6e 0e c0 5d 00 |sands_se|p.en..].|
|00004350| 00 00 00 00 3b 20 74 68 | 65 20 76 61 6c 75 65 73 |....; th|e values|
|00004360| 20 61 72 65 20 74 68 65 | 20 63 6f 72 72 65 73 70 | are the| corresp|
|00004370| 6f 6e 64 69 6e 67 20 00 | 00 a4 00 00 85 98 00 00 |onding .|........|
|00004380| 00 b0 66 07 c9 5e d3 ff | a9 8d d3 ff 20 22 00 00 |..f..^..|.... "..|
|00004390| 76 61 6c 75 65 73 2e 20 | 20 53 65 65 20 74 68 65 |values. | See the|
|000043a0| 20 22 6c 6f 63 61 6c 65 | 63 6f 6e 76 22 20 65 6e | "locale|conv" en|
|000043b0| 74 72 79 20 69 6e 20 74 | 68 65 20 63 68 61 70 74 |try in t|he chapt|
|000043c0| 65 72 20 07 10 c1 5d 00 | 10 c1 5d 00 00 00 00 00 |er ...].|..].....|
|000043d0| 50 4f 53 49 58 20 28 33 | 29 08 6c 29 10 00 00 00 |POSIX (3|).l)....|
|000043e0| 00 00 00 00 20 66 6f 72 | 20 61 20 6c 6f 6e 67 65 |.... for| a longe|
|000043f0| 72 20 65 78 61 6d 70 6c | 65 2c 20 77 68 69 63 68 |r exampl|e, which|
|00004400| 20 6c 69 73 74 73 20 61 | 6c 6c 20 74 68 65 20 00 | lists a|ll the .|
|00004410| 00 98 00 00 05 84 00 00 | 00 60 dd 07 a2 26 d3 ff |........|.`...&..|
|00004420| 82 55 d3 ff 20 22 00 00 | 63 61 74 65 67 6f 72 69 |.U.. "..|categori|
|00004430| 65 73 20 61 6e 20 69 6d | 70 6c 65 6d 65 6e 74 61 |es an im|plementa|
|00004440| 74 69 6f 6e 20 6d 69 67 | 68 74 20 62 65 20 65 78 |tion mig|ht be ex|
|00004450| 70 65 63 74 65 64 20 74 | 6f 20 70 72 6f 76 69 64 |pected t|o provid|
|00004460| 65 3b 20 73 6f 6d 65 20 | 70 72 6f 76 69 64 65 20 |e; some |provide |
|00004470| 6d 6f 72 65 20 61 6e 64 | 20 6f 74 68 65 72 73 20 |more and| others |
|00004480| 66 65 77 65 72 2c 20 68 | 6f 77 65 76 65 72 2e 20 |fewer, h|owever. |
|00004490| 20 00 00 00 00 84 00 00 | 85 98 00 00 00 58 8b 07 | .......|.....X..|
|000044a0| 7b ee d2 ff 5b 1d d3 ff | 20 22 00 00 4e 6f 74 65 |{...[...| "..Note|
|000044b0| 20 74 68 61 74 20 79 6f | 75 20 64 6f 6e 27 74 20 | that yo|u don't |
|000044c0| 6e 65 65 64 20 07 20 74 | 0e c2 5d 00 0e c2 5d 00 |need . t|..]...].|
|000044d0| 00 00 00 00 75 73 65 20 | 6c 6f 63 61 6c 65 08 20 |....use |locale. |
|000044e0| 0e c3 5d 00 00 00 00 00 | 3a 20 61 73 20 61 20 66 |..].....|: as a f|
|000044f0| 75 6e 63 74 69 6f 6e 20 | 77 69 74 68 20 74 68 65 |unction |with the|
|00004500| 20 6a 6f 62 20 6f 66 20 | 71 75 65 72 79 69 6e 67 | job of |querying|
|00004510| 20 74 68 65 20 6c 6f 63 | 61 6c 65 2c 20 6c 6f 63 | the loc|ale, loc|
|00004520| 61 6c 65 63 6f 6e 76 28 | 29 20 00 00 00 98 00 00 |aleconv(|) ......|
|00004530| a5 4c 00 00 40 c0 8e 02 | 54 b6 d2 ff 34 e5 d2 ff |.L..@...|T...4...|
|00004540| 20 22 00 00 61 6c 77 61 | 79 73 20 6f 62 73 65 72 | "..alwa|ys obser|
|00004550| 76 65 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ves the |current |
|00004560| 6c 6f 63 61 6c 65 2e 0d | 07 6e 73 20 14 c4 5d 00 |locale..|.ns ..].|
|00004570| 14 c4 5d 00 00 00 00 00 | 00 4c 00 00 05 80 00 00 |..].....|.L......|
|00004580| 00 28 ee 07 7d 47 d2 ff | 5d 76 d2 ff 20 22 00 00 |.(..}G..|]v.. "..|
|00004590| 48 65 72 65 27 73 20 61 | 20 73 69 6d 70 6c 65 2d |Here's a| simple-|
|000045a0| 6d 69 6e 64 65 64 20 65 | 78 61 6d 70 6c 65 20 70 |minded e|xample p|
|000045b0| 72 6f 67 72 61 6d 20 77 | 68 69 63 68 20 72 65 77 |rogram w|hich rew|
|000045c0| 72 69 74 65 73 20 69 74 | 73 20 63 6f 6d 6d 61 6e |rites it|s comman|
|000045d0| 64 20 6c 69 6e 65 20 70 | 61 72 61 6d 65 74 65 72 |d line p|arameter|
|000045e0| 73 20 61 73 20 69 6e 74 | 65 67 65 72 73 20 66 6f |s as int|egers fo|
|000045f0| 72 6d 61 74 74 65 64 20 | 00 80 00 00 a5 68 00 00 |rmatted |.....h..|
|00004600| 40 f0 34 02 56 0f d2 ff | 36 3e d2 ff 20 22 00 00 |@.4.V...|6>.. "..|
|00004610| 63 6f 72 72 65 63 74 6c | 79 20 69 6e 20 74 68 65 |correctl|y in the|
|00004620| 20 63 75 72 72 65 6e 74 | 20 6c 6f 63 61 6c 65 3a | current| locale:|
|00004630| 0d 08 70 72 14 00 00 00 | 00 00 00 00 07 70 72 69 |..pr....|.....pri|
|00004640| 12 c5 5d 00 12 c5 5d 00 | 00 00 00 00 07 74 65 28 |..]...].|.....te(|
|00004650| 0c c6 5d 00 12 c5 5d 00 | 0c c6 5d 00 00 00 00 00 |..]...].|..].....|
|00004660| 00 68 00 00 25 3c 00 00 | 40 e0 1c 03 4f a8 d1 ff |.h..%<..|@...O...|
|00004670| 5f cf d1 ff 70 1a 00 00 | 23 20 53 65 65 20 63 6f |_...p...|# See co|
|00004680| 6d 6d 65 6e 74 73 20 69 | 6e 20 70 72 65 76 69 6f |mments i|n previo|
|00004690| 75 73 20 65 78 61 6d 70 | 6c 65 0d 00 00 3c 00 00 |us examp|le...<..|
|000046a0| 25 28 00 00 40 20 48 01 | 6f 79 d1 ff 7f a0 d1 ff |%(..@ H.|oy......|
|000046b0| 70 1a 00 00 72 65 71 75 | 69 72 65 20 35 2e 30 30 |p...requ|ire 5.00|
|000046c0| 34 3b 0d 00 00 28 00 00 | a5 5c 00 00 40 10 1b 02 |4;...(..|.\..@...|
|000046d0| 8f 4a d1 ff 9f 71 d1 ff | 70 1a 00 00 75 73 65 20 |.J...q..|p...use |
|000046e0| 50 4f 53 49 58 20 71 77 | 28 6c 6f 63 61 6c 65 5f |POSIX qw|(locale_|
|000046f0| 68 29 3b 0d 08 51 5d 00 | 0c c7 5d 00 12 c5 5d 00 |h);..Q].|..]...].|
|00004700| 00 00 00 00 08 52 5d 00 | 12 00 00 00 00 00 00 00 |.....R].|........|
|00004710| 07 53 5d 00 18 c8 5d 00 | 18 c8 5d 00 00 00 00 00 |.S]...].|..].....|
|00004720| 00 5c 00 00 a5 48 00 00 | 40 00 00 00 ff 35 d1 ff |.\...H..|@....5..|
|00004730| bf 42 d1 ff 00 00 00 00 | 0d 08 5d 00 18 c9 5d 00 |.B......|..]...].|
|00004740| 00 00 00 00 07 59 50 45 | 12 ca 5d 00 12 ca 5d 00 |.....YPE|..]...].|
|00004750| 00 00 00 00 07 20 61 6e | 0c cb 5d 00 12 ca 5d 00 |..... an|..]...].|
|00004760| 0c cb 5d 00 00 00 00 00 | 00 48 00 00 25 50 00 00 |..].....|.H..%P..|
|00004770| 40 c0 c2 04 ff e4 d0 ff | 0f 0c d1 ff 70 1a 00 00 |@.......|....p...|
|00004780| 23 20 47 65 74 20 73 6f | 6d 65 20 6f 66 20 6c 6f |# Get so|me of lo|
|00004790| 63 61 6c 65 27 73 20 6e | 75 6d 65 72 69 63 20 66 |cale's n|umeric f|
|000047a0| 6f 72 6d 61 74 74 69 6e | 67 20 70 61 72 61 6d 65 |ormattin|g parame|
|000047b0| 74 65 72 73 0d 00 00 00 | 00 50 00 00 25 3c 00 00 |ters....|.P..%<..|
|000047c0| 40 00 ee 02 1f b6 d0 ff | 2f dd d0 ff 70 1a 00 00 |@.......|/...p...|
|000047d0| 6d 79 20 28 24 74 68 6f | 75 73 61 6e 64 73 5f 73 |my ($tho|usands_s|
|000047e0| 65 70 2c 20 24 67 72 6f | 75 70 69 6e 67 29 20 3d |ep, $gro|uping) =|
|000047f0| 0d 00 00 00 00 3c 00 00 | a5 74 00 00 40 e0 93 04 |.....<..|.t..@...|
|00004800| 3f 87 d0 ff 4f ae d0 ff | 70 1a 00 00 20 20 20 20 |?...O...|p... |
|00004810| 20 40 7b 6c 6f 63 61 6c | 65 63 6f 6e 76 28 29 7d | @{local|econv()}|
|00004820| 7b 27 74 68 6f 75 73 61 | 6e 64 73 5f 73 65 70 27 |{'thousa|nds_sep'|
|00004830| 2c 20 27 67 72 6f 75 70 | 69 6e 67 27 7d 3b 0d 08 |, 'group|ing'};..|
|00004840| 0c cc 5d 00 12 ca 5d 00 | 00 00 00 00 08 65 72 61 |..]...].|.....era|
|00004850| 12 00 00 00 00 00 00 00 | 07 20 75 73 18 cd 5d 00 |........|. us..].|
|00004860| 18 cd 5d 00 00 00 00 00 | 00 74 00 00 a5 48 00 00 |..].....|.t...H..|
|00004870| 40 00 00 00 af 72 d0 ff | 6f 7f d0 ff 00 00 00 00 |@....r..|o.......|
|00004880| 0d 08 74 20 18 ce 5d 00 | 00 00 00 00 07 6c 65 20 |..t ..].|.....le |
|00004890| 12 cf 5d 00 12 cf 5d 00 | 00 00 00 00 07 74 6f 20 |..]...].|.....to |
|000048a0| 0c d0 5d 00 12 cf 5d 00 | 0c d0 5d 00 00 00 00 00 |..]...].|..].....|
|000048b0| 00 48 00 00 25 40 00 00 | 40 a0 7a 03 af 21 d0 ff |.H..%@..|@.z..!..|
|000048c0| bf 48 d0 ff 70 1a 00 00 | 23 20 41 70 70 6c 79 20 |.H..p...|# Apply |
|000048d0| 64 65 66 61 75 6c 74 73 | 20 69 66 20 76 61 6c 75 |defaults| if valu|
|000048e0| 65 73 20 61 72 65 20 6d | 69 73 73 69 6e 67 0d 00 |es are m|issing..|
|000048f0| 00 40 00 00 25 44 00 00 | 40 d0 ef 03 cf f2 cf ff |.@..%D..|@.......|
|00004900| df 19 d0 ff 70 1a 00 00 | 24 74 68 6f 75 73 61 6e |....p...|$thousan|
|00004910| 64 73 5f 73 65 70 20 3d | 20 27 2c 27 20 75 6e 6c |ds_sep =| ',' unl|
|00004920| 65 73 73 20 24 74 68 6f | 75 73 61 6e 64 73 5f 73 |ess $tho|usands_s|
|00004930| 65 70 3b 0d 00 44 00 00 | a5 64 00 00 40 90 d6 02 |ep;..D..|.d..@...|
|00004940| ef c3 cf ff ff ea cf ff | 70 1a 00 00 24 67 72 6f |........|p...$gro|
|00004950| 75 70 69 6e 67 20 3d 20 | 33 20 75 6e 6c 65 73 73 |uping = |3 unless|
|00004960| 20 24 67 72 6f 75 70 69 | 6e 67 3b 0d 08 0d 08 05 | $groupi|ng;.....|
|00004970| 0c d1 5d 00 12 cf 5d 00 | 00 00 00 00 08 5d 5d 00 |..]...].|.....]].|
|00004980| 12 00 00 00 00 00 00 00 | 07 05 05 05 18 d2 5d 00 |........|......].|
|00004990| 18 d2 5d 00 00 00 00 00 | 00 64 00 00 a5 48 00 00 |..].....|.d...H..|
|000049a0| 40 00 00 00 5f af cf ff | 1f bc cf ff 00 00 00 00 |@..._...|........|
|000049b0| 0d 08 6f 74 18 d3 5d 00 | 00 00 00 00 07 72 69 6f |..ot..].|.....rio|
|000049c0| 12 d4 5d 00 12 d4 5d 00 | 00 00 00 00 07 30 34 0d |..]...].|.....04.|
|000049d0| 0c d5 5d 00 12 d4 5d 00 | 0c d5 5d 00 00 00 00 00 |..]...].|..].....|
|000049e0| 00 48 00 00 25 48 00 00 | 40 90 4d 04 5f 5e cf ff |.H..%H..|@.M._^..|
|000049f0| 6f 85 cf ff 70 1a 00 00 | 23 20 46 6f 72 6d 61 74 |o...p...|# Format|
|00004a00| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 70 61 | command| line pa|
|00004a10| 72 61 6d 73 20 66 6f 72 | 20 63 75 72 72 65 6e 74 |rams for| current|
|00004a20| 20 6c 6f 63 61 6c 65 0d | 00 48 00 00 25 28 00 00 | locale.|.H..%(..|
|00004a30| 40 b0 30 01 7f 2f cf ff | 8f 56 cf ff 70 1a 00 00 |@.0../..|.V..p...|
|00004a40| 66 6f 72 20 28 40 41 52 | 47 56 29 20 7b 0d 00 00 |for (@AR|GV) {...|
|00004a50| 00 28 00 00 25 44 00 00 | 40 80 a9 03 9f 00 cf ff |.(..%D..|@.......|
|00004a60| af 27 cf ff 70 1a 00 00 | 20 20 20 20 24 5f 20 3d |.'..p...| $_ =|
|00004a70| 20 69 6e 74 3b 20 20 20 | 20 23 20 43 68 6f 70 20 | int; | # Chop |
|00004a80| 6e 6f 6e 2d 69 6e 74 65 | 67 65 72 20 70 61 72 74 |non-inte|ger part|
|00004a90| 0d 00 00 00 00 44 00 00 | 25 24 00 00 40 d0 01 01 |.....D..|%$..@...|
|00004aa0| bf d1 ce ff cf f8 ce ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00004ab0| 31 20 77 68 69 6c 65 0d | 00 24 00 00 25 5c 00 00 |1 while.|.$..%\..|
|00004ac0| 40 00 dc 05 df a2 ce ff | ef c9 ce ff 70 1a 00 00 |@.......|....p...|
|00004ad0| 20 20 20 20 73 2f 28 5c | 64 29 28 5c 64 7b 24 67 | s/(\|d)(\d{$g|
|00004ae0| 72 6f 75 70 69 6e 67 7d | 28 24 7c 24 74 68 6f 75 |rouping}|($|$thou|
|00004af0| 73 61 6e 64 73 5f 73 65 | 70 29 29 2f 24 31 24 74 |sands_se|p))/$1$t|
|00004b00| 68 6f 75 73 61 6e 64 73 | 5f 73 65 70 24 32 2f 3b |housands|_sep$2/;|
|00004b10| 0d 00 00 00 00 5c 00 00 | 25 28 00 00 40 90 5f 01 |.....\..|%(..@._.|
|00004b20| ff 73 ce ff 0f 9b ce ff | 70 1a 00 00 20 20 20 20 |.s......|p... |
|00004b30| 70 72 69 6e 74 20 22 24 | 5f 22 3b 0d 00 28 00 00 |print "$|_";..(..|
|00004b40| 25 1c 00 00 40 70 17 00 | 1f 45 ce ff 2f 6c ce ff |%...@p..|.E../l..|
|00004b50| 70 1a 00 00 7d 0d 00 00 | 00 1c 00 00 a5 50 00 00 |p...}...|.....P..|
|00004b60| 40 d0 01 01 3f 16 ce ff | 4f 3d ce ff 70 1a 00 00 |@...?...|O=..p...|
|00004b70| 70 72 69 6e 74 20 22 5c | 6e 22 3b 0d 08 43 5f 43 |print "\|n";..C_C|
|00004b80| 0c d6 5d 00 12 d4 5d 00 | 00 00 00 00 08 67 5d 00 |..]...].|.....g].|
|00004b90| 12 00 00 00 00 00 00 00 | 07 00 00 00 18 d7 5d 00 |........|......].|
|00004ba0| 18 d7 5d 00 00 00 00 00 | 00 50 00 00 a5 34 00 00 |..].....|.P...4..|
|00004bb0| 40 00 00 00 af 01 ce ff | 6f 0e ce ff 00 00 00 00 |@.......|o.......|
|00004bc0| 0d 08 5d 00 18 d8 5d 00 | 00 00 00 00 07 05 05 05 |..]...].|........|
|00004bd0| 08 d9 5d 00 08 d9 5d 00 | 00 00 00 00 00 34 00 00 |..]...].|.....4..|
|00004be0| a5 34 00 00 40 a6 36 02 | 6f 91 cd ff bf d7 cd ff |.4..@.6.|o.......|
|00004bf0| 68 37 00 00 4c 6f 63 61 | 6c 65 20 43 61 74 65 67 |h7..Loca|le Categ|
|00004c00| 6f 72 69 65 73 0d 08 0d | 08 da 5d 00 00 00 00 00 |ories...|..].....|
|00004c10| 00 34 00 00 05 7c 00 00 | 00 2c 03 07 0e 39 cd ff |.4...|..|.,...9..|
|00004c20| ee 67 cd ff 20 22 00 00 | 54 68 65 20 73 75 62 73 |.g.. "..|The subs|
|00004c30| 65 63 74 69 6f 6e 73 20 | 77 68 69 63 68 20 66 6f |ections |which fo|
|00004c40| 6c 6c 6f 77 20 64 65 73 | 63 72 69 62 65 20 62 61 |llow des|cribe ba|
|00004c50| 73 69 63 20 6c 6f 63 61 | 6c 65 20 63 61 74 65 67 |sic loca|le categ|
|00004c60| 6f 72 69 65 73 2e 20 20 | 41 73 20 77 65 6c 6c 20 |ories. |As well |
|00004c70| 61 73 20 74 68 65 73 65 | 2c 20 74 68 65 72 65 20 |as these|, there |
|00004c80| 61 72 65 20 73 6f 6d 65 | 20 00 00 00 00 7c 00 00 |are some| ....|..|
|00004c90| 01 10 00 00 00 38 ab 07 | 00 00 00 00 00 10 00 00 |.....8..|........|
|00004ca0| 02 14 00 00 38 07 00 00 | 00 00 00 00 00 00 00 00 |....8...|........|
|00004cb0| 00 14 00 00 05 8c 00 00 | 00 38 ab 07 bc 45 cb ff |........|.8...E..|
|00004cc0| 9c 74 cb ff 20 22 00 00 | 16 00 00 00 b0 fc 07 00 |.t.. "..|........|
|00004cd0| 00 00 00 00 63 6f 6d 62 | 69 6e 61 74 69 6f 6e 20 |....comb|ination |
|00004ce0| 63 61 74 65 67 6f 72 69 | 65 73 20 77 68 69 63 68 |categori|es which|
|00004cf0| 20 61 6c 6c 6f 77 20 74 | 68 65 20 6d 61 6e 69 70 | allow t|he manip|
|00004d00| 75 6c 61 74 69 6f 6e 20 | 6f 66 20 6d 6f 72 65 20 |ulation |of more |
|00004d10| 74 68 61 6e 20 6f 6e 65 | 20 62 61 73 69 63 20 63 |than one| basic c|
|00004d20| 61 74 65 67 6f 72 79 20 | 61 74 20 61 20 74 69 6d |ategory |at a tim|
|00004d30| 65 2e 20 20 53 65 65 20 | 74 68 65 20 00 8c 00 00 |e. See |the ....|
|00004d40| a5 5c 00 00 40 88 25 04 | 95 0d cb ff 75 3c cb ff |.\..@.%.|....u<..|
|00004d50| 20 22 00 00 73 65 63 74 | 69 6f 6e 20 6f 6e 20 22 | "..sect|ion on "|
|00004d60| 45 4e 56 49 52 4f 4e 4d | 45 4e 54 22 20 66 6f 72 |ENVIRONM|ENT" for|
|00004d70| 20 61 20 64 69 73 63 75 | 73 73 69 6f 6e 20 6f 66 | a discu|ssion of|
|00004d80| 20 74 68 65 73 65 2e 0d | 07 00 00 00 0a db 5d 00 | these..|......].|
|00004d90| 0a db 5d 00 00 00 00 00 | 00 5c 00 00 a5 40 00 00 |..].....|.\...@..|
|00004da0| 40 ac 39 03 ee 96 ca ff | 9e cd ca ff 18 2b 00 00 |@.9.....|.....+..|
|00004db0| 43 61 74 65 67 6f 72 79 | 20 4c 43 5f 43 4f 4c 4c |Category| LC_COLL|
|00004dc0| 41 54 45 3a 20 43 6f 6c | 6c 61 74 69 6f 6e 0d 08 |ATE: Col|lation..|
|00004dd0| 0a dc 5d 00 00 00 00 00 | 00 40 00 00 85 ac 00 00 |..].....|.@......|
|00004de0| 00 74 b4 07 b9 41 ca ff | 99 70 ca ff 20 22 00 00 |.t...A..|.p.. "..|
|00004df0| 57 68 65 6e 20 69 6e 20 | 74 68 65 20 73 63 6f 70 |When in |the scop|
|00004e00| 65 20 6f 66 20 07 61 72 | 0e dd 5d 00 0e dd 5d 00 |e of .ar|..]...].|
|00004e10| 00 00 00 00 75 73 65 a0 | 6c 6f 63 61 6c 65 08 69 |....use.|locale.i|
|00004e20| 0e de 5d 00 00 00 00 00 | 2c 20 50 65 72 6c 20 6c |..].....|, Perl l|
|00004e30| 6f 6f 6b 73 20 74 6f 20 | 74 68 65 20 07 6f 72 79 |ooks to |the .ory|
|00004e40| 0e df 5d 00 0e df 5d 00 | 00 00 00 00 4c 43 5f 43 |..]...].|....LC_C|
|00004e50| 4f 4c 4c 41 54 45 08 64 | 0e e0 5d 00 00 00 00 00 |OLLATE.d|..].....|
|00004e60| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|00004e70| 69 61 62 6c 65 20 74 6f | 20 64 65 74 65 72 6d 69 |iable to| determi|
|00004e80| 6e 65 20 00 00 ac 00 00 | 05 88 00 00 00 24 8f 07 |ne .....|.....$..|
|00004e90| 92 09 ca ff 72 38 ca ff | 20 22 00 00 74 68 65 20 |....r8..| "..the |
|00004ea0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 27 73 20 6e 6f |applicat|ion's no|
|00004eb0| 74 69 6f 6e 73 20 6f 6e | 20 74 68 65 20 63 6f 6c |tions on| the col|
|00004ec0| 6c 61 74 69 6f 6e 20 28 | 6f 72 64 65 72 69 6e 67 |lation (|ordering|
|00004ed0| 29 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 2e |) of cha|racters.|
|00004ee0| 20 20 28 27 62 27 20 66 | 6f 6c 6c 6f 77 73 20 27 | ('b' f|ollows '|
|00004ef0| 61 27 20 69 6e 20 4c 61 | 74 69 6e 20 61 6c 70 68 |a' in La|tin alph|
|00004f00| 61 62 65 74 73 2c 20 62 | 75 74 20 00 00 88 00 00 |abets, b|ut .....|
|00004f10| a5 44 00 00 40 10 0f 02 | 6b d1 c9 ff 4b 00 ca ff |.D..@...|k...K...|
|00004f20| 20 22 00 00 77 68 65 72 | 65 20 64 6f 20 27 e1 27 | "..wher|e do '.'|
|00004f30| 20 61 6e 64 20 27 e5 27 | 20 62 65 6c 6f 6e 67 3f | and '.'| belong?|
|00004f40| 29 0d 07 6e 14 e1 5d 00 | 14 e1 5d 00 00 00 00 00 |)..n..].|..].....|
|00004f50| 00 44 00 00 05 88 00 00 | 00 e0 a5 07 94 62 c9 ff |.D......|.....b..|
|00004f60| 74 91 c9 ff 20 22 00 00 | 48 65 72 65 20 69 73 20 |t... "..|Here is |
|00004f70| 61 20 63 6f 64 65 20 73 | 6e 69 70 70 65 74 20 74 |a code s|nippet t|
|00004f80| 68 61 74 20 77 69 6c 6c | 20 74 65 6c 6c 20 79 6f |hat will| tell yo|
|00004f90| 75 20 77 68 61 74 20 61 | 72 65 20 74 68 65 20 61 |u what a|re the a|
|00004fa0| 6c 70 68 61 6e 75 6d 65 | 72 69 63 20 63 68 61 72 |lphanume|ric char|
|00004fb0| 61 63 74 65 72 73 20 69 | 6e 20 74 68 65 20 63 75 |acters i|n the cu|
|00004fc0| 72 72 65 6e 74 20 6c 6f | 63 61 6c 65 2c 20 69 6e |rrent lo|cale, in|
|00004fd0| 20 74 68 65 20 00 00 00 | 00 88 00 00 a5 54 00 00 | the ...|.....T..|
|00004fe0| 40 98 eb 00 6d 2a c9 ff | 4d 59 c9 ff 20 22 00 00 |@...m*..|MY.. "..|
|00004ff0| 6c 6f 63 61 6c 65 20 6f | 72 64 65 72 3a 0d 08 66 |locale o|rder:..f|
|00005000| 14 00 00 00 00 00 00 00 | 07 6f 6e 20 12 e2 5d 00 |........|.on ..].|
|00005010| 12 e2 5d 00 00 00 00 00 | 07 20 6c 6f 0c e3 5d 00 |..].....|. lo..].|
|00005020| 12 e2 5d 00 0c e3 5d 00 | 00 00 00 00 00 54 00 00 |..]...].|.....T..|
|00005030| 25 24 00 00 40 d0 01 01 | 66 c3 c8 ff 76 ea c8 ff |%$..@...|f...v...|
|00005040| 70 1a 00 00 75 73 65 20 | 6c 6f 63 61 6c 65 3b 0d |p...use |locale;.|
|00005050| 00 24 00 00 a5 78 00 00 | 40 c0 c2 04 86 94 c8 ff |.$...x..|@.......|
|00005060| 96 bb c8 ff 70 1a 00 00 | 70 72 69 6e 74 20 2b 28 |....p...|print +(|
|00005070| 73 6f 72 74 20 67 72 65 | 70 20 2f 5c 77 2f 2c 20 |sort gre|p /\w/, |
|00005080| 6d 61 70 20 7b 20 63 68 | 72 28 29 20 7d 20 30 2e |map { ch|r() } 0.|
|00005090| 2e 32 35 35 29 2c 20 22 | 5c 6e 22 3b 0d 08 20 63 |.255), "|\n";.. c|
|000050a0| 0c e4 5d 00 12 e2 5d 00 | 00 00 00 00 08 20 66 6f |..]...].|..... fo|
|000050b0| 12 00 00 00 00 00 00 00 | 07 65 67 6f 18 e5 5d 00 |........|.ego..].|
|000050c0| 18 e5 5d 00 00 00 00 00 | 00 78 00 00 a5 34 00 00 |..].....|.x...4..|
|000050d0| 40 00 00 00 f6 7f c8 ff | b6 8c c8 ff 00 00 00 00 |@.......|........|
|000050e0| 0d 08 6f 6e 18 e6 5d 00 | 00 00 00 00 07 74 20 69 |..on..].|.....t i|
|000050f0| 14 e7 5d 00 14 e7 5d 00 | 00 00 00 00 00 34 00 00 |..]...].|.....4..|
|00005100| 05 88 00 00 00 9c e0 07 | 26 27 c8 ff 06 56 c8 ff |........|&'...V..|
|00005110| 20 22 00 00 43 6f 6d 70 | 61 72 65 20 74 68 69 73 | "..Comp|are this|
|00005120| 20 77 69 74 68 20 74 68 | 65 20 63 68 61 72 61 63 | with th|e charac|
|00005130| 74 65 72 73 20 74 68 61 | 74 20 79 6f 75 20 73 65 |ters tha|t you se|
|00005140| 65 20 61 6e 64 20 74 68 | 65 69 72 20 6f 72 64 65 |e and th|eir orde|
|00005150| 72 20 69 66 20 79 6f 75 | 20 73 74 61 74 65 20 65 |r if you| state e|
|00005160| 78 70 6c 69 63 69 74 6c | 79 20 74 68 61 74 20 74 |xplicitl|y that t|
|00005170| 68 65 20 6c 6f 63 61 6c | 65 20 73 68 6f 75 6c 64 |he local|e should|
|00005180| 20 62 65 20 00 88 00 00 | a5 50 00 00 40 3c 9c 00 | be ....|.P..@<..|
|00005190| ff ee c7 ff df 1d c8 ff | 20 22 00 00 69 67 6e 6f |........| "..igno|
|000051a0| 72 65 64 3a 0d 08 65 20 | 14 00 00 00 00 00 00 00 |red:..e |........|
|000051b0| 07 6e 74 20 12 e8 5d 00 | 12 e8 5d 00 00 00 00 00 |.nt ..].|..].....|
|000051c0| 07 20 20 59 0c e9 5d 00 | 12 e8 5d 00 0c e9 5d 00 |. Y..].|..]...].|
|000051d0| 00 00 00 00 00 50 00 00 | 25 24 00 00 40 60 ea 00 |.....P..|%$..@`..|
|000051e0| f8 87 c7 ff 08 af c7 ff | 70 1a 00 00 6e 6f 20 6c |........|p...no l|
|000051f0| 6f 63 61 6c 65 3b 0d 00 | 00 24 00 00 a5 78 00 00 |ocale;..|.$...x..|
|00005200| 40 c0 c2 04 18 59 c7 ff | 28 80 c7 ff 70 1a 00 00 |@....Y..|(...p...|
|00005210| 70 72 69 6e 74 20 2b 28 | 73 6f 72 74 20 67 72 65 |print +(|sort gre|
|00005220| 70 20 2f 5c 77 2f 2c 20 | 6d 61 70 20 7b 20 63 68 |p /\w/, |map { ch|
|00005230| 72 28 29 20 7d 20 30 2e | 2e 32 35 35 29 2c 20 22 |r() } 0.|.255), "|
|00005240| 5c 6e 22 3b 0d 08 75 65 | 0c ea 5d 00 12 e8 5d 00 |\n";..ue|..]...].|
|00005250| 00 00 00 00 08 74 68 65 | 12 00 00 00 00 00 00 00 |.....the|........|
|00005260| 07 72 67 75 18 eb 5d 00 | 18 eb 5d 00 00 00 00 00 |.rgu..].|..].....|
|00005270| 00 78 00 00 a5 24 00 00 | 40 00 00 00 88 44 c7 ff |.x...$..|@....D..|
|00005280| 48 51 c7 ff 00 00 00 00 | 0d 08 20 76 18 ec 5d 00 |HQ......|.. v..].|
|00005290| 00 00 00 00 00 24 00 00 | 85 9c 00 00 00 38 f0 07 |.....$..|.....8..|
|000052a0| b8 eb c6 ff 98 1a c7 ff | 20 22 00 00 54 68 69 73 |........| "..This|
|000052b0| 20 6d 61 63 68 69 6e 65 | 2d 6e 61 74 69 76 65 20 | machine|-native |
|000052c0| 63 6f 6c 6c 61 74 69 6f | 6e 20 28 77 68 69 63 68 |collatio|n (which|
|000052d0| 20 69 73 20 77 68 61 74 | 20 79 6f 75 20 67 65 74 | is what| you get|
|000052e0| 20 75 6e 6c 65 73 73 20 | 07 65 67 6f 0e ed 5d 00 | unless |.ego..].|
|000052f0| 0e ed 5d 00 00 00 00 00 | 75 73 65 a0 6c 6f 63 61 |..].....|use.loca|
|00005300| 6c 65 08 20 0e ee 5d 00 | 00 00 00 00 20 68 61 73 |le. ..].|.... has|
|00005310| 20 61 70 70 65 61 72 65 | 64 20 65 61 72 6c 69 65 | appeare|d earlie|
|00005320| 72 20 69 6e 20 74 68 65 | 20 73 61 6d 65 20 00 00 |r in the| same ..|
|00005330| 00 9c 00 00 05 88 00 00 | 00 18 e3 07 91 b3 c6 ff |........|........|
|00005340| 71 e2 c6 ff 20 22 00 00 | 62 6c 6f 63 6b 29 20 6d |q... "..|block) m|
|00005350| 75 73 74 20 62 65 20 75 | 73 65 64 20 66 6f 72 20 |ust be u|sed for |
|00005360| 73 6f 72 74 69 6e 67 20 | 72 61 77 20 62 69 6e 61 |sorting |raw bina|
|00005370| 72 79 20 64 61 74 61 2c | 20 77 68 65 72 65 61 73 |ry data,| whereas|
|00005380| 20 74 68 65 20 6c 6f 63 | 61 6c 65 2d 64 65 70 65 | the loc|ale-depe|
|00005390| 6e 64 65 6e 74 20 63 6f | 6c 6c 61 74 69 6f 6e 20 |ndent co|llation |
|000053a0| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 65 78 61 |of the f|irst exa|
|000053b0| 6d 70 6c 65 20 00 00 00 | 00 88 00 00 a5 44 00 00 |mple ...|.....D..|
|000053c0| 40 90 cb 01 6a 7b c6 ff | 4a aa c6 ff 20 22 00 00 |@...j{..|J... "..|
|000053d0| 69 73 20 75 73 65 66 75 | 6c 20 66 6f 72 20 6e 61 |is usefu|l for na|
|000053e0| 74 75 72 61 6c 20 74 65 | 78 74 2e 0d 07 20 6d 61 |tural te|xt... ma|
|000053f0| 14 ef 5d 00 14 ef 5d 00 | 00 00 00 00 00 44 00 00 |..]...].|.....D..|
|00005400| 85 d0 00 00 00 c4 d0 07 | 93 0c c6 ff 73 3b c6 ff |........|....s;..|
|00005410| 20 22 00 00 41 73 20 6e | 6f 74 65 64 20 69 6e 20 | "..As n|oted in |
|00005420| 74 68 65 20 63 68 61 70 | 74 65 72 20 07 74 65 6d |the chap|ter .tem|
|00005430| 10 f0 5d 00 14 ef 5d 00 | 10 f0 5d 00 00 00 00 00 |..]...].|..].....|
|00005440| 55 53 49 4e 47 20 4c 4f | 43 41 4c 45 53 08 67 75 |USING LO|CALES.gu|
|00005450| 10 00 00 00 14 ef 5d 00 | 00 00 00 00 2c 20 07 6f |......].|...., .o|
|00005460| 0e f1 5d 00 14 ef 5d 00 | 0e f1 5d 00 00 00 00 00 |..]...].|..].....|
|00005470| 63 6d 70 08 0e f2 5d 00 | 14 ef 5d 00 00 00 00 00 |cmp...].|..].....|
|00005480| 20 63 6f 6d 70 61 72 65 | 73 20 61 63 63 6f 72 64 | compare|s accord|
|00005490| 69 6e 67 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |ing to t|he curre|
|000054a0| 6e 74 20 63 6f 6c 6c 61 | 74 69 6f 6e 20 6c 6f 63 |nt colla|tion loc|
|000054b0| 61 6c 65 20 77 68 65 6e | 20 07 65 74 0e f3 5d 00 |ale when| .et..].|
|000054c0| 14 ef 5d 00 0e f3 5d 00 | 00 00 00 00 00 d0 00 00 |..]...].|........|
|000054d0| 85 94 00 00 00 d4 db 07 | 6c d4 c5 ff 4c 03 c6 ff |........|l...L...|
|000054e0| ba 1f 00 00 75 73 65 20 | 6c 6f 63 61 6c 65 08 00 |....use |locale..|
|000054f0| 0e f4 5d 00 14 ef 5d 00 | 00 00 00 00 20 69 73 20 |..]...].|.... is |
|00005500| 69 6e 20 65 66 66 65 63 | 74 2c 20 62 75 74 20 66 |in effec|t, but f|
|00005510| 61 6c 6c 73 20 62 61 63 | 6b 20 74 6f 20 61 20 62 |alls bac|k to a b|
|00005520| 79 74 65 2d 62 79 2d 62 | 79 74 65 20 63 6f 6d 70 |yte-by-b|yte comp|
|00005530| 61 72 69 73 6f 6e 20 66 | 6f 72 20 73 74 72 69 6e |arison f|or strin|
|00005540| 67 73 20 77 68 69 63 68 | 20 74 68 65 20 6c 6f 63 |gs which| the loc|
|00005550| 61 6c 65 20 73 61 79 73 | 20 61 72 65 20 00 00 00 |ale says| are ...|
|00005560| 00 94 00 00 a5 8c 00 00 | 40 64 f7 04 45 9c c5 ff |........|@d..E...|
|00005570| 25 cb c5 ff 20 22 00 00 | 65 71 75 61 6c 2e 20 59 |%... "..|equal. Y|
|00005580| 6f 75 20 63 61 6e 20 75 | 73 65 20 50 4f 53 49 58 |ou can u|se POSIX|
|00005590| 3a 3a 73 74 72 63 6f 6c | 6c 28 29 20 69 66 20 79 |::strcol|l() if y|
|000055a0| 6f 75 20 64 6f 6e 27 74 | 20 77 61 6e 74 20 74 68 |ou don't| want th|
|000055b0| 69 73 20 66 61 6c 6c 2d | 62 61 63 6b 3a 0d 08 6c |is fall-|back:..l|
|000055c0| 14 00 00 00 00 00 00 00 | 07 00 00 00 12 f5 5d 00 |........|......].|
|000055d0| 12 f5 5d 00 00 00 00 00 | 07 73 65 65 0c f6 5d 00 |..].....|.see..].|
|000055e0| 12 f5 5d 00 0c f6 5d 00 | 00 00 00 00 00 8c 00 00 |..]...].|........|
|000055f0| 25 30 00 00 40 a0 03 02 | 3e 35 c5 ff 4e 5c c5 ff |%0..@...|>5..N\..|
|00005600| 70 1a 00 00 75 73 65 20 | 50 4f 53 49 58 20 71 77 |p...use |POSIX qw|
|00005610| 28 73 74 72 63 6f 6c 6c | 29 3b 0d 00 00 30 00 00 |(strcoll|);...0..|
|00005620| 25 2c 00 00 40 e0 a5 01 | 5e 06 c5 ff 6e 2d c5 ff |%,..@...|^...n-..|
|00005630| 70 1a 00 00 24 65 71 75 | 61 6c 5f 69 6e 5f 6c 6f |p...$equ|al_in_lo|
|00005640| 63 61 6c 65 20 3d 0d 00 | 00 2c 00 00 a5 80 00 00 |cale =..|.,......|
|00005650| 40 20 ad 05 7e d7 c4 ff | 8e fe c4 ff 70 1a 00 00 |@ ..~...|....p...|
|00005660| 20 20 20 20 21 73 74 72 | 63 6f 6c 6c 28 22 73 70 | !str|coll("sp|
|00005670| 61 63 65 20 61 6e 64 20 | 63 61 73 65 20 69 67 6e |ace and |case ign|
|00005680| 6f 72 65 64 22 2c 20 22 | 53 70 61 63 65 41 6e 64 |ored", "|SpaceAnd|
|00005690| 43 61 73 65 49 67 6e 6f | 72 65 64 22 29 3b 0d 08 |CaseIgno|red");..|
|000056a0| 0c f7 5d 00 12 f5 5d 00 | 00 00 00 00 08 84 5d 00 |..]...].|......].|
|000056b0| 12 00 00 00 00 00 00 00 | 07 00 00 00 18 f8 5d 00 |........|......].|
|000056c0| 18 f8 5d 00 00 00 00 00 | 00 80 00 00 a5 24 00 00 |..].....|.....$..|
|000056d0| 40 00 00 00 ee c2 c4 ff | ae cf c4 ff 00 00 00 00 |@.......|........|
|000056e0| 0d 08 05 05 18 f9 5d 00 | 00 00 00 00 00 24 00 00 |......].|.....$..|
|000056f0| 05 88 00 00 00 a0 dc 07 | 1e 6a c4 ff fe 98 c4 ff |........|.j......|
|00005700| 20 22 00 00 24 65 71 75 | 61 6c 5f 69 6e 5f 6c 6f | "..$equ|al_in_lo|
|00005710| 63 61 6c 65 20 77 69 6c | 6c 20 62 65 20 74 72 75 |cale wil|l be tru|
|00005720| 65 20 69 66 20 74 68 65 | 20 63 6f 6c 6c 61 74 69 |e if the| collati|
|00005730| 6f 6e 20 6c 6f 63 61 6c | 65 20 73 70 65 63 69 66 |on local|e specif|
|00005740| 69 65 73 20 61 20 64 69 | 63 74 69 6f 6e 61 72 79 |ies a di|ctionary|
|00005750| 2d 6c 69 6b 65 20 6f 72 | 64 65 72 69 6e 67 20 77 |-like or|dering w|
|00005760| 68 69 63 68 20 69 67 6e | 6f 72 65 73 20 73 70 61 |hich ign|ores spa|
|00005770| 63 65 20 00 00 88 00 00 | a5 54 00 00 40 f4 41 03 |ce .....|.T..@.A.|
|00005780| f7 31 c4 ff d7 60 c4 ff | 20 22 00 00 63 68 61 72 |.1...`..| "..char|
|00005790| 61 63 74 65 72 73 20 63 | 6f 6d 70 6c 65 74 65 6c |acters c|ompletel|
|000057a0| 79 2c 20 61 6e 64 20 77 | 68 69 63 68 20 66 6f 6c |y, and w|hich fol|
|000057b0| 64 73 20 63 61 73 65 2e | 0d 07 5d 00 14 fa 5d 00 |ds case.|..]...].|
|000057c0| 14 fa 5d 00 00 00 00 00 | 00 54 00 00 05 84 00 00 |..].....|.T......|
|000057d0| 00 d0 7c 07 20 c3 c3 ff | 00 f2 c3 ff 20 22 00 00 |..|. ...|.... "..|
|000057e0| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 20 73 69 |If you h|ave a si|
|000057f0| 6e 67 6c 65 20 73 74 72 | 69 6e 67 20 77 68 69 63 |ngle str|ing whic|
|00005800| 68 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 63 68 |h you wa|nt to ch|
|00005810| 65 63 6b 20 66 6f 72 20 | 22 65 71 75 61 6c 69 74 |eck for |"equalit|
|00005820| 79 20 69 6e 20 6c 6f 63 | 61 6c 65 22 20 61 67 61 |y in loc|ale" aga|
|00005830| 69 6e 73 74 20 73 65 76 | 65 72 61 6c 20 6f 74 68 |inst sev|eral oth|
|00005840| 65 72 73 2c 20 79 6f 75 | 20 00 00 00 00 84 00 00 |ers, you| .......|
|00005850| a5 c8 00 00 40 f8 0f 07 | f9 8a c3 ff d9 b9 c3 ff |....@...|........|
|00005860| 20 22 00 00 6d 69 67 68 | 74 20 74 68 69 6e 6b 20 | "..migh|t think |
|00005870| 79 6f 75 20 63 6f 75 6c | 64 20 67 61 69 6e 20 61 |you coul|d gain a|
|00005880| 20 6c 69 74 74 6c 65 20 | 65 66 66 69 63 69 65 6e | little |efficien|
|00005890| 63 79 20 62 79 20 75 73 | 69 6e 67 20 50 4f 53 49 |cy by us|ing POSI|
|000058a0| 58 3a 3a 73 74 72 78 66 | 72 6d 28 29 20 69 6e 20 |X::strxf|rm() in |
|000058b0| 63 6f 6e 6a 75 6e 63 74 | 69 6f 6e 20 77 69 74 68 |conjunct|ion with|
|000058c0| 20 07 73 6f 0e fb 5d 00 | 14 fa 5d 00 0e fb 5d 00 | .so..].|..]...].|
|000058d0| 00 00 00 00 65 71 08 74 | 0e fc 5d 00 14 fa 5d 00 |....eq.t|..]...].|
|000058e0| 00 00 00 00 3a 0d 08 00 | 14 00 00 00 00 00 00 00 |....:...|........|
|000058f0| 07 9d 5d 00 12 fd 5d 00 | 12 fd 5d 00 00 00 00 00 |..]...].|..].....|
|00005900| 07 6e 5f 55 0c fe 5d 00 | 12 fd 5d 00 0c fe 5d 00 |.n_U..].|..]...].|
|00005910| 00 00 00 00 00 c8 00 00 | 25 30 00 00 40 a0 03 02 |........|%0..@...|
|00005920| f2 23 c3 ff 02 4b c3 ff | 70 1a 00 00 75 73 65 20 |.#...K..|p...use |
|00005930| 50 4f 53 49 58 20 71 77 | 28 73 74 72 78 66 72 6d |POSIX qw|(strxfrm|
|00005940| 29 3b 0d 00 00 30 00 00 | 25 48 00 00 40 40 07 04 |);...0..|%H..@@..|
|00005950| 12 f5 c2 ff 22 1c c3 ff | 70 1a 00 00 24 78 66 72 |...."...|p...$xfr|
|00005960| 6d 5f 73 74 72 69 6e 67 | 20 3d 20 73 74 72 78 66 |m_string| = strxf|
|00005970| 72 6d 28 22 4d 69 78 65 | 64 2d 63 61 73 65 20 73 |rm("Mixe|d-case s|
|00005980| 74 72 69 6e 67 22 29 3b | 0d 00 00 00 00 48 00 00 |tring");|.....H..|
|00005990| 25 44 00 00 40 f0 c0 03 | 32 c6 c2 ff 42 ed c2 ff |%D..@...|2...B...|
|000059a0| 70 1a 00 00 70 72 69 6e | 74 20 22 6c 6f 63 61 6c |p...prin|t "local|
|000059b0| 65 20 63 6f 6c 6c 61 74 | 69 6f 6e 20 69 67 6e 6f |e collat|ion igno|
|000059c0| 72 65 73 20 73 70 61 63 | 65 73 5c 6e 22 0d 00 00 |res spac|es\n"...|
|000059d0| 00 44 00 00 25 4c 00 00 | 40 50 ab 04 52 97 c2 ff |.D..%L..|@P..R...|
|000059e0| 62 be c2 ff 70 1a 00 00 | 20 20 20 20 69 66 20 24 |b...p...| if $|
|000059f0| 78 66 72 6d 5f 73 74 72 | 69 6e 67 20 65 71 20 73 |xfrm_str|ing eq s|
|00005a00| 74 72 78 66 72 6d 28 22 | 4d 69 78 65 64 2d 63 61 |trxfrm("|Mixed-ca|
|00005a10| 73 65 73 74 72 69 6e 67 | 22 29 3b 0d 00 4c 00 00 |sestring|");..L..|
|00005a20| 25 44 00 00 40 60 d8 03 | 72 68 c2 ff 82 8f c2 ff |%D..@`..|rh......|
|00005a30| 70 1a 00 00 70 72 69 6e | 74 20 22 6c 6f 63 61 6c |p...prin|t "local|
|00005a40| 65 20 63 6f 6c 6c 61 74 | 69 6f 6e 20 69 67 6e 6f |e collat|ion igno|
|00005a50| 72 65 73 20 68 79 70 68 | 65 6e 73 5c 6e 22 0d 00 |res hyph|ens\n"..|
|00005a60| 00 44 00 00 25 4c 00 00 | 40 50 ab 04 92 39 c2 ff |.D..%L..|@P...9..|
|00005a70| a2 60 c2 ff 70 1a 00 00 | 20 20 20 20 69 66 20 24 |.`..p...| if $|
|00005a80| 78 66 72 6d 5f 73 74 72 | 69 6e 67 20 65 71 20 73 |xfrm_str|ing eq s|
|00005a90| 74 72 78 66 72 6d 28 22 | 4d 69 78 65 64 63 61 73 |trxfrm("|Mixedcas|
|00005aa0| 65 20 73 74 72 69 6e 67 | 22 29 3b 0d 00 4c 00 00 |e string|");..L..|
|00005ab0| 25 40 00 00 40 10 92 03 | b2 0a c2 ff c2 31 c2 ff |%@..@...|.....1..|
|00005ac0| 70 1a 00 00 70 72 69 6e | 74 20 22 6c 6f 63 61 6c |p...prin|t "local|
|00005ad0| 65 20 63 6f 6c 6c 61 74 | 69 6f 6e 20 69 67 6e 6f |e collat|ion igno|
|00005ae0| 72 65 73 20 63 61 73 65 | 5c 6e 22 0d 00 40 00 00 |res case|\n"..@..|
|00005af0| a5 78 00 00 40 c0 c2 04 | d2 db c1 ff e2 02 c2 ff |.x..@...|........|
|00005b00| 70 1a 00 00 20 20 20 20 | 69 66 20 24 78 66 72 6d |p... |if $xfrm|
|00005b10| 5f 73 74 72 69 6e 67 20 | 65 71 20 73 74 72 78 66 |_string |eq strxf|
|00005b20| 72 6d 28 22 6d 69 78 65 | 64 2d 63 61 73 65 20 73 |rm("mixe|d-case s|
|00005b30| 74 72 69 6e 67 22 29 3b | 0d 08 00 00 0c ff 5d 00 |tring");|......].|
|00005b40| 12 fd 5d 00 00 00 00 00 | 08 a3 5d 00 12 00 00 00 |..].....|..].....|
|00005b50| 00 00 00 00 07 65 74 08 | 18 00 5e 00 18 00 5e 00 |.....et.|..^...^.|
|00005b60| 00 00 00 00 00 78 00 00 | a5 24 00 00 40 00 00 00 |.....x..|.$..@...|
|00005b70| 42 c7 c1 ff 02 d4 c1 ff | 00 00 00 00 0d 08 20 61 |B.......|...... a|
|00005b80| 18 01 5e 00 00 00 00 00 | 00 24 00 00 05 84 00 00 |..^.....|.$......|
|00005b90| 00 44 ab 07 72 6e c1 ff | 52 9d c1 ff 20 22 00 00 |.D..rn..|R... "..|
|00005ba0| 73 74 72 78 66 72 6d 28 | 29 20 74 61 6b 65 73 20 |strxfrm(|) takes |
|00005bb0| 61 20 73 74 72 69 6e 67 | 20 61 6e 64 20 6d 61 70 |a string| and map|
|00005bc0| 73 20 69 74 20 69 6e 74 | 6f 20 61 20 74 72 61 6e |s it int|o a tran|
|00005bd0| 73 66 6f 72 6d 65 64 20 | 73 74 72 69 6e 67 20 66 |sformed |string f|
|00005be0| 6f 72 20 75 73 65 20 69 | 6e 20 62 79 74 65 2d 62 |or use i|n byte-b|
|00005bf0| 79 2d 62 79 74 65 20 63 | 6f 6d 70 61 72 69 73 6f |y-byte c|ompariso|
|00005c00| 6e 73 20 61 67 61 69 6e | 73 74 20 00 00 84 00 00 |ns again|st .....|
|00005c10| 05 88 00 00 00 7c ee 07 | 4b 36 c1 ff 2b 65 c1 ff |.....|..|K6..+e..|
|00005c20| 20 22 00 00 6f 74 68 65 | 72 20 74 72 61 6e 73 66 | "..othe|r transf|
|00005c30| 6f 72 6d 65 64 20 73 74 | 72 69 6e 67 73 20 64 75 |ormed st|rings du|
|00005c40| 72 69 6e 67 20 63 6f 6c | 6c 61 74 69 6f 6e 2e 20 |ring col|lation. |
|00005c50| 20 22 55 6e 64 65 72 20 | 74 68 65 20 68 6f 6f 64 | "Under |the hood|
|00005c60| 22 2c 20 6c 6f 63 61 6c | 65 2d 61 66 66 65 63 74 |", local|e-affect|
|00005c70| 65 64 20 50 65 72 6c 20 | 63 6f 6d 70 61 72 69 73 |ed Perl |comparis|
|00005c80| 6f 6e 20 6f 70 65 72 61 | 74 6f 72 73 20 63 61 6c |on opera|tors cal|
|00005c90| 6c 20 00 00 00 88 00 00 | 05 88 00 00 00 18 da 07 |l ......|........|
|00005ca0| 24 fe c0 ff 04 2d c1 ff | 20 22 00 00 73 74 72 78 |$....-..| "..strx|
|00005cb0| 66 72 6d 28 29 20 66 6f | 72 20 62 6f 74 68 20 74 |frm() fo|r both t|
|00005cc0| 68 65 69 72 20 6f 70 65 | 72 61 6e 64 73 2c 20 74 |heir ope|rands, t|
|00005cd0| 68 65 6e 20 64 6f 20 61 | 20 62 79 74 65 2d 62 79 |hen do a| byte-by|
|00005ce0| 2d 62 79 74 65 20 63 6f | 6d 70 61 72 69 73 6f 6e |-byte co|mparison|
|00005cf0| 20 6f 66 20 74 68 65 20 | 74 72 61 6e 73 66 6f 72 | of the |transfor|
|00005d00| 6d 65 64 20 73 74 72 69 | 6e 67 73 2e 20 20 42 79 |med stri|ngs. By|
|00005d10| 20 63 61 6c 6c 69 6e 67 | 20 00 00 00 00 88 00 00 | calling| .......|
|00005d20| 05 84 00 00 00 c8 ba 07 | fd c5 c0 ff dd f4 c0 ff |........|........|
|00005d30| 20 22 00 00 73 74 72 78 | 66 72 6d 28 29 20 65 78 | "..strx|frm() ex|
|00005d40| 70 6c 69 63 69 74 6c 79 | 2c 20 61 6e 64 20 75 73 |plicitly|, and us|
|00005d50| 69 6e 67 20 61 20 6e 6f | 6e 20 6c 6f 63 61 6c 65 |ing a no|n locale|
|00005d60| 2d 61 66 66 65 63 74 65 | 64 20 63 6f 6d 70 61 72 |-affecte|d compar|
|00005d70| 69 73 6f 6e 2c 20 74 68 | 65 20 65 78 61 6d 70 6c |ison, th|e exampl|
|00005d80| 65 20 61 74 74 65 6d 70 | 74 73 20 74 6f 20 73 61 |e attemp|ts to sa|
|00005d90| 76 65 20 61 20 63 6f 75 | 70 6c 65 20 6f 66 20 00 |ve a cou|ple of .|
|00005da0| 00 84 00 00 85 98 00 00 | 00 f0 e9 07 d6 8d c0 ff |........|........|
|00005db0| b6 bc c0 ff 20 22 00 00 | 74 72 61 6e 73 66 6f 72 |.... "..|transfor|
|00005dc0| 6d 61 74 69 6f 6e 73 2e | 20 20 49 6e 20 66 61 63 |mations.| In fac|
|00005dd0| 74 2c 20 69 74 20 64 6f | 65 73 6e 27 74 20 73 61 |t, it do|esn't sa|
|00005de0| 76 65 20 61 6e 79 74 68 | 69 6e 67 3a 20 50 65 72 |ve anyth|ing: Per|
|00005df0| 6c 20 6d 61 67 69 63 20 | 28 73 65 65 20 74 68 65 |l magic |(see the|
|00005e00| 20 22 4d 61 67 69 63 20 | 56 61 72 69 61 62 6c 65 | "Magic |Variable|
|00005e10| 73 22 20 65 6e 74 72 79 | 20 69 6e 20 74 68 65 20 |s" entry| in the |
|00005e20| 63 68 61 70 74 65 72 20 | 07 61 6c 65 10 02 5e 00 |chapter |.ale..^.|
|00005e30| 10 02 5e 00 00 00 00 00 | 00 98 00 00 85 94 00 00 |..^.....|........|
|00005e40| 00 04 dc 07 af 55 c0 ff | 8f 84 c0 ff 28 23 00 00 |.....U..|....(#..|
|00005e50| 70 65 72 6c 67 75 74 73 | 08 a7 5d 00 10 00 00 00 |perlguts|..].....|
|00005e60| 00 00 00 00 29 20 63 72 | 65 61 74 65 73 20 74 68 |....) cr|eates th|
|00005e70| 65 20 74 72 61 6e 73 66 | 6f 72 6d 65 64 20 76 65 |e transf|ormed ve|
|00005e80| 72 73 69 6f 6e 20 6f 66 | 20 61 20 73 74 72 69 6e |rsion of| a strin|
|00005e90| 67 20 74 68 65 20 66 69 | 72 73 74 20 74 69 6d 65 |g the fi|rst time|
|00005ea0| 20 69 74 27 73 20 6e 65 | 65 64 65 64 20 69 6e 20 | it's ne|eded in |
|00005eb0| 61 20 63 6f 6d 70 61 72 | 69 73 6f 6e 2c 20 74 68 |a compar|ison, th|
|00005ec0| 65 6e 20 6b 65 65 70 73 | 20 69 74 20 00 94 00 00 |en keeps| it ....|
|00005ed0| 85 9c 00 00 00 f8 a8 07 | 88 1d c0 ff 68 4c c0 ff |........|....hL..|
|00005ee0| 20 22 00 00 61 72 6f 75 | 6e 64 20 69 6e 20 63 61 | "..arou|nd in ca|
|00005ef0| 73 65 20 69 74 27 73 20 | 6e 65 65 64 65 64 20 61 |se it's |needed a|
|00005f00| 67 61 69 6e 2e 20 20 41 | 6e 20 65 78 61 6d 70 6c |gain. A|n exampl|
|00005f10| 65 20 72 65 77 72 69 74 | 74 65 6e 20 74 68 65 20 |e rewrit|ten the |
|00005f20| 65 61 73 79 20 77 61 79 | 20 77 69 74 68 20 07 08 |easy way| with ..|
|00005f30| 0e 03 5e 00 0e 03 5e 00 | 00 00 00 00 63 6d 70 08 |..^...^.|....cmp.|
|00005f40| 0e 04 5e 00 00 00 00 00 | 20 72 75 6e 73 20 6a 75 |..^.....| runs ju|
|00005f50| 73 74 20 61 62 6f 75 74 | 20 61 73 20 66 61 73 74 |st about| as fast|
|00005f60| 2e 20 20 49 74 20 00 00 | 00 9c 00 00 01 10 00 00 |. It ..|........|
|00005f70| 00 c0 a1 07 00 00 00 00 | 00 10 00 00 02 14 00 00 |........|........|
|00005f80| d4 08 00 00 00 00 00 00 | 00 00 00 00 00 14 00 00 |........|........|
|00005f90| 05 98 00 00 00 c0 a1 07 | 0b 46 be ff eb 74 be ff |........|.F...t..|
|00005fa0| 20 22 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00005fb0| 61 6c 73 6f 20 63 6f 70 | 65 73 20 77 69 74 68 20 |also cop|es with |
|00005fc0| 6e 75 6c 6c 20 63 68 61 | 72 61 63 74 65 72 73 20 |null cha|racters |
|00005fd0| 65 6d 62 65 64 64 65 64 | 20 69 6e 20 73 74 72 69 |embedded| in stri|
|00005fe0| 6e 67 73 3b 20 69 66 20 | 79 6f 75 20 63 61 6c 6c |ngs; if |you call|
|00005ff0| 20 73 74 72 78 66 72 6d | 28 29 20 64 69 72 65 63 | strxfrm|() direc|
|00006000| 74 6c 79 2c 20 69 74 20 | 74 72 65 61 74 73 20 74 |tly, it |treats t|
|00006010| 68 65 20 66 69 72 73 74 | 20 6e 75 6c 6c 20 69 74 |he first| null it|
|00006020| 20 00 00 00 00 98 00 00 | 05 88 00 00 00 9c ef 07 | .......|........|
|00006030| e4 0d be ff c4 3c be ff | 20 22 00 00 66 69 6e 64 |.....<..| "..find|
|00006040| 73 20 61 73 20 61 20 74 | 65 72 6d 69 6e 61 74 6f |s as a t|erminato|
|00006050| 72 2e 20 20 41 6e 64 20 | 64 6f 6e 27 74 20 65 78 |r. And |don't ex|
|00006060| 70 65 63 74 20 74 68 65 | 20 74 72 61 6e 73 66 6f |pect the| transfo|
|00006070| 72 6d 65 64 20 73 74 72 | 69 6e 67 73 20 69 74 20 |rmed str|ings it |
|00006080| 70 72 6f 64 75 63 65 73 | 20 74 6f 20 62 65 20 70 |produces| to be p|
|00006090| 6f 72 74 61 62 6c 65 20 | 61 63 72 6f 73 73 20 73 |ortable |across s|
|000060a0| 79 73 74 65 6d 73 20 2d | 20 6f 72 20 00 88 00 00 |ystems -| or ....|
|000060b0| 05 88 00 00 00 40 c7 07 | bd d5 bd ff 9d 04 be ff |.....@..|........|
|000060c0| 20 22 00 00 65 76 65 6e | 20 66 72 6f 6d 20 6f 6e | "..even| from on|
|000060d0| 65 20 72 65 76 69 73 69 | 6f 6e 20 6f 66 20 79 6f |e revisi|on of yo|
|000060e0| 75 72 20 6f 70 65 72 61 | 74 69 6e 67 20 73 79 73 |ur opera|ting sys|
|000060f0| 74 65 6d 20 74 6f 20 74 | 68 65 20 6e 65 78 74 2e |tem to t|he next.|
|00006100| 20 20 49 6e 20 73 68 6f | 72 74 2c 20 64 6f 6e 27 | In sho|rt, don'|
|00006110| 74 20 63 61 6c 6c 20 73 | 74 72 78 66 72 6d 28 29 |t call s|trxfrm()|
|00006120| 20 64 69 72 65 63 74 6c | 79 3a 20 6c 65 74 20 50 | directl|y: let P|
|00006130| 65 72 6c 20 00 88 00 00 | 25 28 00 00 40 c8 f4 00 |erl ....|%(..@...|
|00006140| 96 9d bd ff 76 cc bd ff | 20 22 00 00 64 6f 20 69 |....v...| "..do i|
|00006150| 74 20 66 6f 72 20 79 6f | 75 2e 0d 00 00 28 00 00 |t for yo|u....(..|
|00006160| 85 9c 00 00 00 f4 c7 07 | bf 2e bd ff 9f 5d bd ff |........|.....]..|
|00006170| 20 22 00 00 4e 6f 74 65 | 3a 20 07 24 0e 05 5e 00 | "..Note|: .$..^.|
|00006180| 0e 05 5e 00 00 00 00 00 | 75 73 65 20 6c 6f 63 61 |..^.....|use loca|
|00006190| 6c 65 08 69 0e 06 5e 00 | 00 00 00 00 20 69 73 6e |le.i..^.|.... isn|
|000061a0| 27 74 20 73 68 6f 77 6e | 20 69 6e 20 73 6f 6d 65 |'t shown| in some|
|000061b0| 20 6f 66 20 74 68 65 73 | 65 20 65 78 61 6d 70 6c | of thes|e exampl|
|000061c0| 65 73 2c 20 61 73 20 69 | 74 20 69 73 6e 27 74 20 |es, as i|t isn't |
|000061d0| 6e 65 65 64 65 64 3a 20 | 73 74 72 63 6f 6c 6c 28 |needed: |strcoll(|
|000061e0| 29 20 61 6e 64 20 73 74 | 72 78 66 72 6d 28 29 20 |) and st|rxfrm() |
|000061f0| 65 78 69 73 74 20 00 00 | 00 9c 00 00 a5 9c 00 00 |exist ..|........|
|00006200| 40 1c 07 07 98 f6 bc ff | 78 25 bd ff 20 22 00 00 |@.......|x%.. "..|
|00006210| 6f 6e 6c 79 20 74 6f 20 | 67 65 6e 65 72 61 74 65 |only to |generate|
|00006220| 20 6c 6f 63 61 6c 65 2d | 64 65 70 65 6e 64 65 6e | locale-|dependen|
|00006230| 74 20 72 65 73 75 6c 74 | 73 2c 20 61 6e 64 20 73 |t result|s, and s|
|00006240| 6f 20 61 6c 77 61 79 73 | 20 6f 62 65 79 20 74 68 |o always| obey th|
|00006250| 65 20 63 75 72 72 65 6e | 74 20 07 79 0e 07 5e 00 |e curren|t .y..^.|
|00006260| 0e 07 5e 00 00 00 00 00 | 4c 43 5f 43 4f 4c 4c 41 |..^.....|LC_COLLA|
|00006270| 54 45 08 61 0e 08 5e 00 | 00 00 00 00 20 6c 6f 63 |TE.a..^.|.... loc|
|00006280| 61 6c 65 2e 0d 07 65 73 | 0a 09 5e 00 0a 09 5e 00 |ale...es|..^...^.|
|00006290| 00 00 00 00 00 9c 00 00 | a5 44 00 00 40 4e b6 03 |........|.D..@N..|
|000062a0| f1 7f bc ff a1 b6 bc ff | 18 2b 00 00 43 61 74 65 |........|.+..Cate|
|000062b0| 67 6f 72 79 20 4c 43 5f | 43 54 59 50 45 3a 20 43 |gory LC_|CTYPE: C|
|000062c0| 68 61 72 61 63 74 65 72 | 20 54 79 70 65 73 0d 08 |haracter| Types..|
|000062d0| 0a 0a 5e 00 00 00 00 00 | 00 44 00 00 85 a8 00 00 |..^.....|.D......|
|000062e0| 00 dc 22 07 bc 2a bc ff | 9c 59 bc ff 20 22 00 00 |.."..*..|.Y.. "..|
|000062f0| 57 68 65 6e 20 69 6e 20 | 74 68 65 20 73 63 6f 70 |When in |the scop|
|00006300| 65 20 6f 66 20 07 20 76 | 0e 0b 5e 00 0e 0b 5e 00 |e of . v|..^...^.|
|00006310| 00 00 00 00 75 73 65 a0 | 6c 6f 63 61 6c 65 08 63 |....use.|locale.c|
|00006320| 0e 0c 5e 00 00 00 00 00 | 2c 20 50 65 72 6c 20 6f |..^.....|, Perl o|
|00006330| 62 65 79 73 20 74 68 65 | 20 07 07 05 0e 0d 5e 00 |beys the| .....^.|
|00006340| 0e 0d 5e 00 00 00 00 00 | 4c 43 5f 43 54 59 50 45 |..^.....|LC_CTYPE|
|00006350| 08 08 05 05 0e 0e 5e 00 | 00 00 00 00 20 6c 6f 63 |......^.|.... loc|
|00006360| 61 6c 65 20 73 65 74 74 | 69 6e 67 2e 20 20 54 68 |ale sett|ing. Th|
|00006370| 69 73 20 63 6f 6e 74 72 | 6f 6c 73 20 74 68 65 20 |is contr|ols the |
|00006380| 00 a8 00 00 85 94 00 00 | 00 98 12 07 95 f2 bb ff |........|........|
|00006390| 75 21 bc ff 20 22 00 00 | 61 70 70 6c 69 63 61 74 |u!.. "..|applicat|
|000063a0| 69 6f 6e 27 73 20 6e 6f | 74 69 6f 6e 20 6f 66 20 |ion's no|tion of |
|000063b0| 77 68 69 63 68 20 63 68 | 61 72 61 63 74 65 72 73 |which ch|aracters|
|000063c0| 20 61 72 65 20 61 6c 70 | 68 61 62 65 74 69 63 2e | are alp|habetic.|
|000063d0| 20 20 54 68 69 73 20 61 | 66 66 65 63 74 73 20 50 | This a|ffects P|
|000063e0| 65 72 6c 27 73 20 07 6f | 0e 0f 5e 00 0e 0f 5e 00 |erl's .o|..^...^.|
|000063f0| 00 00 00 00 5c 77 08 61 | 0e 10 5e 00 00 00 00 00 |....\w.a|..^.....|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.