| United States-English |
|
|
|
![]() |
HP-UX 11i Version 3 Release Notes: HP 9000 and HP Integrity Servers > Chapter 11 InternationalizationUNIX 2003 Support in localedef, locale, and iconv |
|
The localedef, locale and iconv commands and the associated C library APIs, locale databases and iconv converters, which provide the core internationalization support in HP-UX, have been updated to align with the UNIX 2003 standard. The localedef, locale and iconv now support all the new options and features defined in the UNIX 2003 standard. The localedef command now supports the following new features and options:
The locale command is enhanced to display new LC_MONETARY keywords defined in the UNIX 2003 standard. The iconv command is enhanced to support the following new features and options:
The semantics of the various LC_MONETARY keywords in a locale file are now interpreted according to the UNIX 2003 standard. As a result, the behavior of the strfmon() function has been changed slightly. The keyword values in the system locales are adjusted slightly to compensate for this behavior change with the end result that the strfmon() function will behave the same as before for applications that use the system locales. However, any user-generated locale may need some tuning to provide the same strfmon() behavior as before. The change should be transparent to the users unless they use their own customized locales instead of system provided locales. In that case, the behavior of the strfmon() function may be changed depending on how the LC_MONETARY sections of the customized locales are defined. Applications that use the localeconv() function to retrieve LC_MONETARY parameters may have to be updated to handle the new members returned in the lconv structure. Few applications use customized locales or the localeconv() function for direct monetary values formatting. So the impact should be minimal. The command line semantics change of the iconv command may also affect applications that have dependence on the old command line semantics. The behavior of the strfmon() function has been changed slightly to align with the UNIX 2003 standard. The system locales are changed accordingly to make the behavior of the strfmon() function the same as before unless applications use non-system locales. In which case, the LC_MONETARY sections of the user-customized locales may have to be updated so as to provide the old strfmon() behavior. The localeconv() function has been changed to return a lconv structure with new members for formatting monetary quantity with international currency symbol. The values of some of the existing members may be changed to reflect new semantics in the UNIX 2003 standard. Applications that use those values directly for formatting may have to be updated to handle new semantics defined in the UNIX 2003 standard. Applications that linked with the archived libc library will not be impacted unless they are recompiled for the current release. The command line semantics of the iconv command has also been changed. The manual pages for the following commands have been updated to reflect the new and updated functionalities:
|
||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||