Porting to OS/2: Case #27 iconv() and configure test
iconv() is used to support i18n(internationalization). On OS/2, there are ULS(Universal Language Support) APIs. kLIBC provides iconv() implemented by this ULS APIs. By the way, ULS APIs are dependent on the installed code page files in \LANGUAGE\CODEPAGE on a boot drive. Unfortunately, SBCS OS/2 does not have some DBCS code page files by default. As a result, some DBCS charsets are not supported by ULS APIs on SBCS system. Likewise iconv() of kLIBC fails to support DBCS charsets. Especially, configure test for iconv()(iconv.m4) checks the eucJP charset which corresonds to IBM-954 code page(See \LANGUAGE\CODEPAGE\UCSTBL.LST). However, SBCS OS/2 does not have IBM-954 code page file in \LANGUAGE\CODEPAGE by default. After all, configure test for working iconv() fails. There are three ways to solve this problem. 1. Copying IBM943 to IBM954 IBM943 is a Japanese code page file. So copy it to IBM954. This is very simple workaround to pass configure test. But IBM943 is not same as...