AIX Globalization
Total Page:16
File Type:pdf, Size:1020Kb
AIX Version 7.1 AIX globalization IBM Note Before using this information and the product it supports, read the information in “Notices” on page 233 . This edition applies to AIX Version 7.1 and to all subsequent releases and modifications until otherwise indicated in new editions. © Copyright International Business Machines Corporation 2010, 2018. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents About this document............................................................................................vii Highlighting.................................................................................................................................................vii Case-sensitivity in AIX................................................................................................................................vii ISO 9000.....................................................................................................................................................vii AIX globalization...................................................................................................1 What's new...................................................................................................................................................1 Separation of messages from programs..................................................................................................... 1 Conversion between code sets.............................................................................................................. 1 Input method support............................................................................................................................ 2 Converters overview...............................................................................................................................2 Using the message facility......................................................................................................................2 Setting multicultural support for devices.............................................................................................. 3 Changing the language environment..................................................................................................... 5 Changing the default keyboard map...................................................................................................... 5 ICU4C libraries .......................................................................................................................................5 Locales..........................................................................................................................................................5 Understanding locale..............................................................................................................................5 Understanding locale categories........................................................................................................... 7 Understanding locale environment variables........................................................................................7 Understanding the locale definition source file.....................................................................................9 Multibyte subroutines.......................................................................................................................... 10 Wide character subroutines.................................................................................................................10 Bidirectionality and character shaping................................................................................................ 10 Code set independence........................................................................................................................10 File name matching.............................................................................................................................. 11 Radix character handling..................................................................................................................... 12 Programming model.............................................................................................................................12 Subroutines for multicultural support.......................................................................................................12 Locale subroutines............................................................................................................................... 13 Time formatting subroutines............................................................................................................... 17 Monetary formatting subroutines........................................................................................................ 18 Multibyte and wide character subroutines.......................................................................................... 20 Globalized regular expression subroutines......................................................................................... 41 Code sets for multicultural support.......................................................................................................... 43 Single-byte and multibyte code sets................................................................................................... 44 Unique code-point range..................................................................................................................... 45 Data representation............................................................................................................................. 45 Character properties............................................................................................................................ 46 ASCII characters.................................................................................................................................. 47 Code set strategy..................................................................................................................................49 Code set structure................................................................................................................................49 ISO code sets....................................................................................................................................... 51 IBM PC code sets................................................................................................................................. 59 UCS-2 and UTF-8................................................................................................................................. 66 Converters overview for programming......................................................................................................69 Using the iconv command....................................................................................................................70 Understanding libiconv........................................................................................................................ 70 Using converters........................................................................................................................................ 74 Code set conversion filter example..................................................................................................... 74 iii Naming converters............................................................................................................................... 75 List of converters........................................................................................................................................76 PC, ISO, and EBCDIC code set converters...........................................................................................76 Multibyte code set converters..............................................................................................................80 Interchange converters—7-bit.............................................................................................................85 Interchange converters—8-bit.............................................................................................................88 Interchange converters—compound text............................................................................................ 92 Interchange converters—uucode.........................................................................................................94 UCS-2 interchange converters.............................................................................................................95 UTF-8 interchange converters............................................................................................................. 97 Miscellaneous converters.................................................................................................................. 100 Writing converters using the iconv interface.......................................................................................... 100 Code sets and converters.................................................................................................................. 101 Overview of iconv framework structures...........................................................................................101 Writing a code set converter.............................................................................................................