Bug 71750 - charmap woes
charmap woes
Product: Red Hat Raw Hide
Classification: Retired
Component: man-pages (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-08-17 20:15 EDT by ellson
Modified: 2007-04-18 12:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-19 03:53:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description ellson 2002-08-17 20:15:19 EDT
Description of Problem:
- /etc/sysconfig/i18n contains CHARSET="8859-15" which doesn't exactly
match any file in /usr/share/i18n/charmaps/
- Why "CHARSET" and not "CHARMAP" ?
- No description of "locale charmap" in locale(1) manpage.
- Why not return charmap name in main result from "locale"?  Also in setlocale()
return value?
- No simple C function (that I could find) to tell a program what the 
user's charmap is currently set to.

Version-Release number of selected component (if applicable):
anaconda-7.3.94-1    (or whatever creates /etc/sysconfig/i18n)

How Reproducible:

Steps to Reproduce:

Actual Results:

Expected Results:
Looking for C function that returns user's current charmap selection in a form
that I can feed directly to iconv_open().

Additional Information:
Comment 1 ellson 2002-08-17 23:10:57 EDT
Miloslav Trmac was kind enough to point me to:  nl_langinfo(CODESET)

Sure, "charmap", "charset", "codeset"  what does it matter, hic!

Do you think that perhaps the setlocale(3) and iconv(3) manpages could
at least include cross-references to this?
Comment 2 Jakub Jelinek 2002-08-19 03:53:04 EDT
It certainly shouldn't be in locale(1) man page, it has nothing to do with
locale program.
It is mentioned quite prominently in info libc in Locales section, but I agree
it could be cross-referenced in setlocale(3) man page.
Comment 3 Trond Eivind Glomsrxd 2002-08-27 12:41:16 EDT
Fixed in 1.53-1

Note You need to log in before you can comment on or make changes to this bug.