I'm setting up a new server(Fujitsu M10-4 / Solaris 10 1/13) to move our app/DB and I'm having trouble figuring out why my LANG setting is not taking effect. I'm trying to set LANG=C in the /etc/default/init file which should make it the default system wide from what I gather. However it is always set to "en_US.UTF-8" when I log in. I've rebooted the server and removed/re-added the entry just to be sure, but no luck.
I can set the LANG setting to C in my shell manually, but it is not persistent when I switch over to bash or exit out. I've checked the /etc/profile, and the user profiles and I'm not finding anything that would be overriding the setting.
I suppose I can just set it in /etc/profile and the root profiles and call it a day, but I'd prefer to know exactly why the default init is not working for me. I'm hoping this is just something simple I'm missing. Anything to point me in the right direction would be appreciated.
Thanks
/etc/default/init contents: ---------- Post updated at 11:23 AM ---------- Previous update was at 11:21 AM ----------
I already had LANG=C in the default init file, but I just added LC_ALL=C. After reboot, everything but LANG is set to C.
So it's pretty clear that LANG is getting set somewhere else, but I'm not finding where. I've logged in as root and my user account with the same results and have checked .profile, .bash_profile and /etc/profile.
Could there be another item I'm missing or is there a way to debug the login to see everything that is being executed on login?
---------- Post updated at 02:49 PM ---------- Previous update was at 01:44 PM ----------
I popped an "echo $LANG" into the /etc/profile and the local profile and it is getting set to en_US.UTF-8 before it gets to anything in those. Still digging.
Note that if LC_ALL is set in your environment, none of the other locale environment variables (LANG, LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, and LC_MESSAGES) can have any effect. LC_ALL overrides all of the other locale environment variables and should NEVER be set by the system as part of a user's login environment. Normally, a login environment should just provide a setting for LANG which provides a default value for all of the LC_* variables except LC_ALL.
Hi All,
We had issue with a application which reports process counts in log, application used to log process counts as Integer data type (1500).
One fine morning we started seeing process counts in application log as Decimal (1,500).
Our UNIX admin did investigate and figured-out that... (5 Replies)
I encountered a problem on one of our database servers.
OS: CentOS 5.5 final
Kernel: 2.6.18-238.5.1.el5.028stab085.2 (OpenVZ kernel)
We wrote some DB-Start/Stop-scripts ("/db2/admin/scripts_dba/start_services.ksh" and ".../stop_services.ksh") to start the database instances. (Database... (1 Reply)
!!Hello Everyone!!
I Recently purchased a Iomega iX2-200 NAS that runs a custom debian installed by Iomega (Linux Debian 5.0.2 ( 2.6.22.18 armv5tejl)) . I have SSH access. I installed Transmission since the factory installed torrents manager that Iomega uses is terrible. Transmission-daemon... (1 Reply)
Dear all,
I typed in init 1 on my redhat box as root and according to wikipedia (http://en.wikipedia.org/wiki/Runlevel):
1 Single-User Mode Does not configure network interfaces, start daemons, or allow non-root logins
So now I can't connect back to it. How do I change the init back to 3?... (8 Replies)
Hello
(Very New to UNIX -Solaris 10)
I'm trying to set the LANG variable to C but not sure if it's getting set, need some help on this.
Currently I have it set to en_GB.UTF-8
I need to set it to C for an install. but when I run set LANG=C and then run echo $LANG its still set to... (2 Replies)
I have a really strange issue on Solaris 10 running on v490. I'm running Oracle 10g on the box. Everything runs fine and all of a sudden I get a call from a DBA. I check and none of the Oracle processes are running. They were definitely running after the system booted and nobody stopped them. I try... (0 Replies)
Hi all,
I am trying to set up some variables in a shell script. The variables contain values of various paths needed to run a java module. The problem is the variables dont seem to be setting at all.
here is what i am trying to do :
JAR_HOME=/home/was5/bdcms/scheduledjobs/lib
export... (1 Reply)