Sponsored Content
Operating Systems Solaris LC_ALL & LANG are set OK, but others couldn't set locale correctly. Post 302606790 by asdfg on Monday 12th of March 2012 07:19:28 PM
Old 03-12-2012
Quote:
Originally Posted by coolboys
you better to set our locale ...... time zone.
Hey I'm not sure I understand your response. Can you elaborate?

If you mean just leave it as AU, I need the US locale as something I'm installing has it as a pre-requisite and won't install on any other locale set unfortunately Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

why the PATH can not be set correctly?

I'm using Linux-Mandrake 8.0 in my laptop. After I logged in as a "root", I added a new path in my .bashrc file (I use bash shell). Then I can observe it has been set correctly by typing echo $PATH. But, when I log in again as a personal account, not "root", then I open my bash shell, and type... (5 Replies)
Discussion started by: yishen
5 Replies

2. UNIX for Dummies Questions & Answers

Couldn't set locale correctly

When a user connects via ssh to one of out Sun V120 boxes the following message is displayed. "couldn't set locale correctly" The .profile has the following line # @(#)local.profile 1.6 98/02/06 SMI stty istrip stty erase ^H So I put a set -x in the .profile and re sourced it and... (1 Reply)
Discussion started by: mattd
1 Replies

3. UNIX for Dummies Questions & Answers

ssh2: .profile not set correctly

When logging into solaris box through ssh, my profile does not get set correctly and I'm presented with the default ksh prompt "$". When logging in through telnet, everything is set correctly. Is there a special profile that sshd runs? ssh2: F-Secure SSH 2.4.0 (build 15) on sparc-sun-solaris2.8 (0 Replies)
Discussion started by: dangral
0 Replies

4. UNIX for Dummies Questions & Answers

Where to set the LANG variable

When I login to my AIX server, the LANG variable is automatically being set to En_US. This is causing locale warning messages when I run emacs or perl. The reason seems to be that En_US is not a valid locale (seen by running locale -a). I can change the variable from the command line (export... (3 Replies)
Discussion started by: wvdeijk
3 Replies

5. Red Hat

Command to set locale for my linux machine

Hi, I need to set a locale to my linux machine which has redhat enterprise linux 4 how should I do that. And also when i did locale -a, I have got three versions for each locale type with different .extensions like utf8,iso88951 and soon which file should I use for setting locale. ... (1 Reply)
Discussion started by: eamani_sun
1 Replies

6. Solaris

Couldn't set locale correctly

hi All, I'm using sun OS 5.10. All locales are set to en_US.ISO8859-1 in /etc/profile/init file. I'm using one functional user.When I tried to "sesu - functionalUser",its giving me error like "Couldn't set locale correctly".In functional user profile i'm tring to set locales to en_US.After... (1 Reply)
Discussion started by: Kathraji
1 Replies

7. Solaris

Couldn't set locale correctly

Hello, I have a recently configured machine that when log into it as a user or remotely as root it displays "Couldn't set locale correctly" When I type locale it displays the below which is wrong compared to other machines LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C"... (7 Replies)
Discussion started by: Mr Pink
7 Replies

8. Solaris

I can't set locale in Solaris 8

Hi gentlemen. I would change LANG=C to iso_8859_5. I have tried some variante, but it doesn't work. Thanks. (24 Replies)
Discussion started by: wolfgang
24 Replies

9. Solaris

couldn't set locale correctly

Dear All, I Have problem at my console (Ultra 24, solaris 10 x86), when i type dmesg always come out : like this You have new mail. root@console # bash root@console # dmesg couldn't set locale correctly couldn't set locale correctly So how to fix it...? Best Regards simbah (3 Replies)
Discussion started by: mbah_jiman
3 Replies

10. Solaris

How to set the japanese locale in Solaris 10

Pls help me to set the japanese locale in Solaris 10. I have checked JP locale has been already installed on Solaris BOX. Thanks, Karan N (2 Replies)
Discussion started by: nirka01
2 Replies
USELOCALE(3)						     Linux Programmer's Manual						      USELOCALE(3)

NAME
uselocale - set/get the locale for the calling thread SYNOPSIS
#include <locale.h> locale_t uselocale(locale_t newloc); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): uselocale(): Since glibc 2.10: _XOPEN_SOURCE >= 700 Before glibc 2.10: _GNU_SOURCE DESCRIPTION
The uselocale() function sets the current locale for the calling thread, and returns the thread's previously current locale. After a suc- cessful call to uselocale(), any calls by this thread to functions that depend on the locale will operate as though the locale has been set to newloc. The newloc argument can have one of the following values: A handle returned by a call to newlocale(3) or duplocale(3) The calling thread's current locale is set to the specified locale. The special locale object handle LC_GLOBAL_LOCALE The calling thread's current locale is set to the global locale determined by setlocale(3). (locale_t) 0 The calling thread's current locale is left unchanged (and the current locale is returned as the function result). RETURN VALUE
On success, uselocale() returns the locale handle that was set by the previous call to uselocale() in this thread, or LC_GLOBAL_HANDLE if there was no such previous call. On error, it returns (locale_t) 0, and sets errno to indicate the cause of the error. ERRORS
EINVAL newloc does not refer to a valid locale object. VERSIONS
The uselocale() function first appeared in version 2.3 of the GNU C library. CONFORMING TO
POSIX.1-2008. NOTES
Unlike setlocale(3), uselocale() does not allow selective replacement of individual locale categories. To employ a locale that differs in only a few categories from the current locale, use calls to duplocale(3) and newlocale(3) to obtain a locale object equivalent to the cur- rent locale and modify the desired categories in that object. EXAMPLE
See newlocale(3) and duplocale(3). SEE ALSO
locale(1), duplocale(3), freelocale(3), newlocale(3), setlocale(3), locale(5), locale(7) Linux 2014-03-10 USELOCALE(3)
All times are GMT -4. The time now is 02:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy