02-10-2004
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 then got the following output.
PGW-A$ . ./.profile
+ stty istrip
+ stty erase ^H
+ couldn't set locale correctly
All the env variables seem to get exported ok, does anyone know;
1 if this is just an annoying message or telling me something more serious?
2 How to remedy the problem?
Cheers
Matt
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
3. Red Hat
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
4. Solaris
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
5. Solaris
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
6. Solaris
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
7. Solaris
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
8. Solaris
Hi,
I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8
With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8".
Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies
9. Solaris
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
10. SCO
I'm trying to virtualize an instance of SCO Open Server 5.0.2c in VirtualBox (called VM- A) , I can not configure the network (NIC).
The NIC I'm using is PCnet -FAST III (Am79C973 ) (this NIC works with VirtualBox + SCO 5.0.5M)
When I add from ' Add new LAN adapter' I detects the NIC... (2 Replies)
Discussion started by: flako
2 Replies
LEARN ABOUT PHP
collator.__construct
COLLATOR.__CONSTRUCT(3) 1 COLLATOR.__CONSTRUCT(3)
Collator::__construct - Create a collator
SYNOPSIS
public Collator::__construct (string $locale)
DESCRIPTION
Creates a new instance of Collator.
PARAMETERS
o $locale
- The locale whose collation rules should be used. Special values for locales can be passed in - if null is passed for the locale,
the default locale's collation rules will be used. If "root" is passed, UCA rules will be used. The Locale attribute is typically
the most important attribute for correct sorting and matching, according to the user expectations in different countries and
regions. The default UCA ordering will only sort a few languages such as Dutch and Portuguese correctly ("correctly" meaning
according to the normal expectations for users of the languages). Otherwise, you need to supply the locale to UCA in order to
properly collate text for a given language. Thus a locale needs to be supplied so as to choose a collator that is correctly tai-
lored for that locale. The choice of a locale will automatically preset the values for all of the attributes to something that is
reasonable for that locale. Thus most of the time the other attributes do not need to be explicitly set. In some cases, the choice
of locale will make a difference in string comparison performance and/or sort key length.
RETURN VALUES
Returns Collator instance.
ERRORS
/EXCEPTIONS
Returns an "empty" object on error. You can use intl_get_error_code(3) and/or intl_get_error_message(3) to know what happened.
EXAMPLES
Example #1
Collator.__construct(3) example
<?php
$coll = new Collator( 'en_CA' );
?>
SEE ALSO
Collator.create(3), collator_create(3).
PHP Documentation Group COLLATOR.__CONSTRUCT(3)