Re: charmap info from locale?
On Sun, Aug 18, 2002 at 03:29:23AM +0200, Miloslav Trmac wrote: Probably nl_langinfo (CODESET). AFAIK there is no guarantee that the returned name can be used for iconv, but I hope that glibc is sane enough. glibc is sane enough, but there are no guarantees that the return of nl_langinfo(CODESET) is a valid iconv codeset parameter or that it will be convertible to UTF-8. Cheers, Matt ___ Redhat-devel-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-devel-list
charmap info from locale?
Can anyone tell me how a program can determine what character encoding (charmap) it should expect in a user's environment? I want to use UTF-8 internally, but I need to know what to ask iconv() to convert from. I can't find anything in the default environment and the locale command doesn't seem to provide charmap data. John Ellson ___ Redhat-devel-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-devel-list
Re: charmap info from locale?
On Sat, Aug 17, 2002 at 05:10:00PM -0400, John Ellson wrote: Can anyone tell me how a program can determine what character encoding (charmap) it should expect in a user's environment? I want to use UTF-8 internally, but I need to know what to ask iconv() to convert from. Probably nl_langinfo (CODESET). AFAIK there is no guarantee that the returned name can be used for iconv, but I hope that glibc is sane enough. Mirek ___ Redhat-devel-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-devel-list