localcharset: improve charset detection on OS/2
commit9bb70e04d414eed9fd805788083dc24d01dcac62
authorKO Myung-Hun <komh@chollian.net>
Wed, 7 Jan 2015 05:36:52 +0000 (7 14:36 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 7 Jan 2015 05:39:52 +0000 (7 14:39 +0900)
treeb98c446a0ab87abcdd82ab6da5929fb7ca68e795
parent987cb086f36e1f39644589c19b88d306b9476c82
localcharset: improve charset detection on OS/2

Use system codepage when appropriate.  Map OS/2 codepages to
GNU canonical charset names if possible.

* lib/config.charset: Don't output aliases if "$os" is os2*.
* lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
result for OS/2.
(locale_charset) [OS2]: Use system codepage if codeset is omitted
from the locale name which is neither "C" nor "POSIX".
ChangeLog
lib/config.charset
lib/localcharset.c