Sponsored Content
Operating Systems Solaris /etc/default/init LANG Setting Not Working Post 302960529 by kaledragule on Monday 16th of November 2015 02:49:03 PM
Old 11-16-2015
I'm logging in via SSH.

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.

Code:
# locale
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=C
# echo $LANG
en_US.UTF-8

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.
 

7 More Discussions You Might Find Interesting

1. AIX

Setting Variables not working

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)
Discussion started by: rpandey
1 Replies

2. Solaris

Solaris 10 - init stops working

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)
Discussion started by: GKnight
0 Replies

3. UNIX for Dummies Questions & Answers

Setting the $LANG info needed

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)
Discussion started by: deedaz
2 Replies

4. Linux

How to I change init levels after typing init 1

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)
Discussion started by: z1dane
8 Replies

5. Debian

Iomega ix2-200 Custom Debian - Autostart script in init.d not Working

!!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)
Discussion started by: stejimenez
1 Replies

6. Red Hat

init-script failing because of /etc/rc.d/init.d/functions

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)
Discussion started by: bakunin
1 Replies

7. AIX

Undestanding LANG setting in /etc/environment

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)
Discussion started by: Aaron Boyce
5 Replies
REGFILEDUMP(1)							The Regina Handbook						    REGFILEDUMP(1)

NAME
regfiledump - Dump the contents of a Regina data file SYNOPSIS
regfiledump [ -f | -l | -n ] [ -c ] file [ packet-label ... ] DESCRIPTION
This utility dumps the contents of the given Regina data file to standard output in a human-readable format. If a list of packet labels is given on the command-line, only those packets will be output. Otherwise all packets in the given file will be output. OPTIONS
-f (default) Output full packet details. The output for each packet will cover several lines, beginning with basic details (such as the packet label and type) followed by the packet's long description. -l Output a list of packet labels and types only, one packet per line. -n Don't output any packets at all; this option forces a packet count (see option -c). -c Finish the output with a total count of all packets in the file. INTERNATIONALISATION
If any packets contain international characters, Regina will attempt to convert these to your local character encoding as it writes them to the output. You can tell Regina what character encoding to use by setting standard locale-related environment variables, such as LANG, LC_CTYPE or LC_ALL. For example, if LANG is set to en_AU then output will be written in the Western European character set ISO-8859-1, and if LANG is set to en_AU.UTF-8 then output will be written in the universal character set UTF-8. Typically these environment variables will already be set for you when you install your GNU/Linux system, and Regina will just use the right character set out of the box. See your GNU/Linux system reference for further information on supporting different locales. MACOS X USERS
If you downloaded a drag-and-drop app bundle, this utility is shipped inside it. If you dragged Regina to the main Applications folder, you can run it as /Applications/Regina.app/Contents/MacOS/regfiledump. WINDOWS USERS
The command-line utilities are installed beneath the Program Files directory; on some machines this directory is called Pro- gram Files (x86). You can start this utility by running c:Program FilesReginaRegina 4.93in egfiledump.exe. SEE ALSO
regina-gui. AUTHOR
This utility was written by Benjamin Burton <bab@debian.org>. Many people have been involved in the development of Regina; see the users' handbook for a full list of credits. 28 May 2012 REGFILEDUMP(1)
All times are GMT -4. The time now is 08:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy