Thanks for the numerous answers, I will give an answer to each, the problem is parcially solved but not completely as you will see from my answers (in order of publication date)
#1, DBelton(1)
-----------------
Quote:
setenv LC_MONETARY en_US.UTF-8
setenv LC_NUMERIC en_US.UTF-8
|
I can not modify the locale variables that way. "setenv" is not a command avaible (at least for me).
#2 gthill
---------
Quote:
use
locale -a
to list the locales available on your system.
|
Already done this, already knew the command to list the locale variables. This not change them. Thank you anyway.
#3 jpollard
------------
Quote:
I think all you have to do is:
LC_NUMERIC="en_US.utf8"
export LC_NUMERIC
|
The most usefull answer till now, although a bit incomplete. When I type in a shell:
Code:
LC_NUMERIC="en_US.utf8"
export LC_NUMERIC
I can then run applications that need decimal division as point instead commas, meaning I really get to change the LC_NUMERIC variable. THE PROBLEM IS THAT THIS CHANGE IS NOT PERMANT! AND AFFECTS ONLY THE SHELL WHERE I MODIFIED THE LOCALE VARIABLE.
Meaning, If I I have to do it again IF I OPEN OTHER SHELL.
OTHER PROBLEM IS THAT IT ONLY AFFECT THE CURRENT SHELL!!!!!!:
meaning that if instead of running the app by typing the name in the shell +enter, I choose to run it by double clicking the name in the file browser, then IT DOES NOT WORK! It complains again about the numeric local variable.
Please if you do not understand this problem, write to me, but I assure you this a annoying problem (I can not launch the application by double clicking, I can not make a launcher).
# 4 DBelton (2)
--------------------------
Quote:
would adding that to /etc/profile.d in script files be enough to make it seen in under X?
for example:
|
The file /etc/profile.d/custum.sh does not exists, instead the most interesting file in that directory is lang.sh:
Code:
# /etc/profile.d/lang.sh - set i18n stuff
sourced=0
if [ -n "$LANG" ]; then
saved_lang="$LANG"
[ -f "$HOME/.i18n" ] && . "$HOME/.i18n" && sourced=1
LANG="$saved_lang"
unset saved_lang
else
for langfile in /etc/sysconfig/i18n "$HOME/.i18n" ; do
[ -f $langfile ] && . $langfile && sourced=1
done
fi
if [ "$sourced" = 1 ]; then
[ -n "$LANG" ] && export LANG || unset LANG
[ -n "$LC_ADDRESS" ] && export LC_ADDRESS || unset LC_ADDRESS
[ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE
[ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE
[ -n "$LC_IDENTIFICATION" ] && export LC_IDENTIFICATION || unset LC_IDENTIFICATION
[ -n "$LC_MEASUREMENT" ] && export LC_MEASUREMENT || unset LC_MEASUREMENT
[ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES
[ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY
[ -n "$LC_NAME" ] && export LC_NAME || unset LC_NAME
[ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC
[ -n "$LC_PAPER" ] && export LC_PAPER || unset LC_PAPER
[ -n "$LC_TELEPHONE" ] && export LC_TELEPHONE || unset LC_TELEPHONE
[ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME
if [ -n "$LC_ALL" ]; then
if [ "$LC_ALL" != "$LANG" ]; then
export LC_ALL
else
unset LC_ALL
fi
else
unset LC_ALL
fi
[ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
[ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
[ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
consoletype=$CONSOLETYPE
if [ -z "$consoletype" ]; then
consoletype=$(/sbin/consoletype stdout)
fi
if [ -n "$LANG" ]; then
case $LANG in
*.utf8*|*.UTF-8*)
if [ "$TERM" = "linux" ]; then
if [ "$consoletype" = "vt" ]; then
case $LANG in
ja*) LANG=en_US.UTF-8 ;;
ko*) LANG=en_US.UTF-8 ;;
si*) LANG=en_US.UTF-8 ;;
zh*) LANG=en_US.UTF-8 ;;
ar*) LANG=en_US.UTF-8 ;;
fa*) LANG=en_US.UTF-8 ;;
he*) LANG=en_US.UTF-8 ;;
en_IN*) ;;
*_IN*) LANG=en_US.UTF-8 ;;
esac
fi
fi
;;
*)
if [ "$TERM" = "linux" ]; then
if [ "$consoletype" = "vt" ]; then
case $LANG in
ja*) LANG=en_US ;;
ko*) LANG=en_US ;;
si*) LANG=en_US ;;
zh*) LANG=en_US ;;
ar*) LANG=en_US ;;
fa*) LANG=en_US ;;
he*) LANG=en_US ;;
en_IN*) ;;
*_IN*) LANG=en_US ;;
esac
fi
fi
;;
esac
fi
unset SYSFONTACM SYSFONT consoletype
fi
unset sourced
unset langfile
Script i do not understand very much.
# jpollard (2)
---------------
Quote:
No - /etc/profile is only invoked when the shell is invoked.
Most GUI do not startup with the shell - they start from gdm/kdm
which I believe do a fork/exec of the window manager..
|
Ok, I agree, but then what to do???
# DBelton (3)
--------------------
HTML Code:
I would think that the environment set in the /etc/profile and /etc/profile.d/* would be in effect in the shell that X is started from and still set.
Is there some place that specifically sets the environment for X?
That is what I am talking about, not only affecting shells, but also the X also. For one time and for all times modify LC_NUMERIC for allways.