- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to change locale?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 05:50 PM
тАО08-22-2007 05:50 PM
How to change locale?
Hi,
How can I change the locale on a HP-UX machine.
My current settings are:
bash-2.05# locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
bash-2.05#
I want them to change it to ja_JP.SJIS.
The contents of /usr/lib/locale are:
bash-2.05# ls /usr/lib/locale/
en_US
bash-2.05#
(do I have to install extra lang packages also on my machine)
What all thing I need to do to set the locale to ja_JP.SJIS.?
Thanks
-Sri
- Tags:
- locale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 06:14 PM
тАО08-22-2007 06:14 PM
Re: How to change locale?
setlocale(xxxxxxx, "xxxxxx");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 06:28 PM
тАО08-22-2007 06:28 PM
Re: How to change locale?
Is there some config file to change the system locale?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 06:29 PM
тАО08-22-2007 06:29 PM
Re: How to change locale?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 09:22 PM
тАО08-22-2007 09:22 PM
Re: How to change locale?
You can do this is each .profile, or put it in the system wide one /etc/profile.
>do I have to install extra lang packages also on my machine
You may have to do that. What does "locale -a" show?
Does this show anything?
$ swlist -l product International
- Tags:
- LANG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 10:01 PM
тАО08-22-2007 10:01 PM
Re: How to change locale?
When I execute some command the messags are not geeting displayed in Japanese.
for eg.
#list a non existing path.
bash-2.05# ls /opt/sfdsdfsdfs
/opt/sfdsdfsdfs ├В┬к├Г ├Г ├В┬й├Г┬и├Г ├В┬╣├Г┬▒B
bash-2.05#
The error message(/opt/sfdsdfsdfs not found) is not in japanese).
Am i missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 10:12 PM
тАО08-22-2007 10:12 PM
Re: How to change locale?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 10:13 PM
тАО08-22-2007 10:13 PM
Re: How to change locale?
It doesn't look like American Nerd, so it must be something else, maybe Greek. ;-)
If you use tusc, you can see if it opens the Japanese message catalog. If so, it is Japanese. Of course your display may not display it correctly. Do you strip parity?
Here is the raw dump of what I get:
$ LANG=ja_JP.SJIS ls xxxXXXXXXXXXXXX 2> ls.out
$ vis ls.out
xxxXXXXXXXXXXXX \202\252\202\335\202\302\202\251\202\350\202\334\202\271\202\361
\201B
In my case, tusc said it opened:
open("/usr/lib/nls/msg/ja_JP.SJIS/ls.cat", O_RDONLY, 014) = 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 10:31 PM
тАО08-22-2007 10:31 PM
Re: How to change locale?
I assume that side has to know you are using Japanese too??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2007 01:10 AM
тАО08-23-2007 01:10 AM
Re: How to change locale?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2007 03:16 AM
тАО08-24-2007 03:16 AM