Skip to contentSkip to conversation

New: Add “locale -c charmap” as an example to locale (1)

Bug 104511 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 6 messages Sep 14, 2015 – Mar 11, 2016 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=104511

Bug ID: 104511
Summary: Add “locale -c charmap” as an example to locale(1)
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No

This prints “LC_CTYPE” followed by the name of the charset. This is often quite useful information, and there does not seem to be another convenient way to get this information from the shell. It's also not apparent how to get this information from locale(1).

Signature · 5 lines
You are receiving this mail because:
You are watching the assignee of the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): bug-104511-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/

#2 lore raw

[Bug 104511] Add “locale -c charmap” as an example to locale (1)

https://bugzilla.kernel.org/show_bug.cgi?id=104511

Florian Weimer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

[Bug 104511] Add “locale -c charmap” as an example to locale (1)

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=104511

Marko Myllynen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Marko Myllynen <[email protected]> --- Hi Florian,

The first example is:

       $ locale
       LANG=en_US.UTF-8
       LC_CTYPE="en_US.UTF-8"
       ...

And there the encoding listed matches the charset in use, do you think an additional example would still be warranted?

http://man7.org/linux/man-pages/man1/locale.1.html

Thanks.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

[Bug 104511] Add “locale -c charmap” as an example to locale (1)

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=104511

--- Comment #2 from Florian Weimer <[email protected]> --- (In reply to Marko Myllynen from comment #1)

Quoted 11 lines

Hi Florian,

The first example is:

       $ locale
       LANG=en_US.UTF-8
       LC_CTYPE="en_US.UTF-8"
       ...

And there the encoding listed matches the charset in use, do you think an additional example would still be warranted?

Yes, absolutely, because “locale -c charmap” works even if the charset is not part of the locale name:

$ LC_ALL=zh_CN locale -c charmap 
LC_CTYPE
GB2312
$ LC_ALL=lzh_TW locale -c charmap 
LC_CTYPE
UTF-8
$ LC_ALL=zh_HK locale -c charmap 
LC_CTYPE
BIG5-HKSCS

I don't know of any other convenient way to obtain this information (short of writing a small C program which uses nl_langinfo(CODESET)).

Signature · 5 lines
You are receiving this mail because:
You are watching the assignee of the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

[Bug 104511] Add “locale -c charmap” as an example to locale (1)

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=104511

--- Comment #3 from Marko Myllynen <[email protected]> --- Patch posted at http://thread.gmane.org/gmane.linux.man/10064. Thanks.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw

[Bug 104511] Add “locale -c charmap” as an example to locale (1)

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=104511

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |CODE_FIX

--- Comment #4 from Michael Kerrisk <[email protected]> --- Closing this, as that patch was merged.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html