System Locale [WORKAROUND SUPPLIED]

Hi!
I have two Arch Linux systems up and running, and they both suffer from the same issue: the system locale is not set upon boot.
Normally I don't need it to be set, as all users locales are working. However, some of my cronjobs and daemons require the system locale to be correct.
One possible solution to this issue would probably be to set LANG in /etc/rc.local, but I'm after a permanent solution.
/etc/rc.conf:
# /etc/rc.conf - Main Configuration for Arch Linux
# LOCALIZATION
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
LOCALE="sv_SE.UTF8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Stockholm"
KEYMAP="sv-latin1"
CONSOLEFONT="lat1-12"
CONSOLEMAP="8859-1"
USECOLOR="yes"
# HARDWARE
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
MOD_AUTOLOAD="yes"
MODULES=(!pcspkr !snd-pcsp autofs4 acpi-cpufreq)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="yes"
# NETWORKING
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
HOSTNAME="neo"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(!eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
# Network profiles are found in /etc/network.d
# This now requires the netcfg package
NETWORKS=(home)
# DAEMONS
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
DAEMONS=(syslog-ng @acpid @hal @network @net-profiles @crond @laptop-mode @fam @alsa @autofs @xinetd @sensors)
/etc/locale.gen:
sv_SE.UTF-8 UTF-8
Output from locale on system level after boot:
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
Output from locale in my shell:
LANG=sv_SE.UTF8
LC_CTYPE="sv_SE.UTF8"
LC_NUMERIC="sv_SE.UTF8"
LC_TIME="sv_SE.UTF8"
LC_COLLATE=C
LC_MONETARY="sv_SE.UTF8"
LC_MESSAGES="sv_SE.UTF8"
LC_PAPER="sv_SE.UTF8"
LC_NAME="sv_SE.UTF8"
LC_ADDRESS="sv_SE.UTF8"
LC_TELEPHONE="sv_SE.UTF8"
LC_MEASUREMENT="sv_SE.UTF8"
LC_IDENTIFICATION="sv_SE.UTF8"
LC_ALL=
Any help is appreciated
Last edited by irock (2009-10-31 11:00:35)

I've found a simple but ugly workaround for this issue now. Add the following lines to /etc/rc.conf and everything will work as expected.
export LC_COLLATE="C"
export LANG="${LOCALE}"
My /etc/rc.conf now looks like this:
# /etc/rc.conf - Main Configuration for Arch Linux
# LOCALIZATION
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
LOCALE="sv_SE.UTF8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Stockholm"
KEYMAP="sv-latin1"
CONSOLEFONT="lat1-12"
CONSOLEMAP="8859-1"
USECOLOR="yes"
export LC_COLLATE="C"
export LANG="${LOCALE}"
# HARDWARE
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
MOD_AUTOLOAD="yes"
MODULES=(!pcspkr !snd-pcsp autofs4 acpi-cpufreq)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="yes"
# NETWORKING
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
HOSTNAME="neo"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(!eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
# Network profiles are found in /etc/network.d
# This now requires the netcfg package
NETWORKS=(home)
# DAEMONS
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
DAEMONS=(syslog-ng @acpid @hal @network @net-profiles @crond @laptop-mode @fam
@alsa @autofs @xinetd @sensors @iptables)
As a side note, all info and warning messages during boot, after rc.sysinit invocation, is now properly translated into swedish (i.e when partitions are to be checked on the next reboot).
I now also remember I've had problems with file dialogs not showing åäö properly (i.e when saving a web page in ff), which no longer seems to be an issue.
Thing is that I've been running Arch Linux for the last 2 years, and now I realize that the system locale setting might have never worked. I still can't figure out where locales are set during boot... The /etc/rc.sysinit script says that it sets locale (and so does http://wiki.archlinux.org/index.php/Boot), but in fact it does not! It just fixes /etc/profile* so login shells will have the proper locale set, while the system continue to run with no explicitly set locale.

Similar Messages

  • BUG! Not system locale Filenames support for 32-bit applications error in Windows 8.1 x64 and other microssoft x64 OS-s.

    BUG! Not system locale Filenames support for 32-bit applications error in Windows 8.1 x64.        
    All Windows x64 (XP,2003,2007,Vista,7,8) have no support for not system locale filenames|foldernames for all 32-bit applications. I think it is BUG!
    For example,  it is possible to read files|folders with French or Chinese in English locale windows installed, rename it, but it is not possible open it, edit or delete. (ERRORS: File not found OR Unknown format)
    With using 64-bit programs no such problems. How does it works and how can I fix this? Is it problem with encoding in translating kernel instructions for 32-bit apps in x64 Windows OS's? Whether there are
    solutions to this problem OR some hacks|fixes? 

    Hi,
    Have you installed the language package for French or Chinese?
    If no, please download the language package and install them.
    To download language package, please click the link below,
    http://windows.microsoft.com/en-US/windows/language-packs#lptabs=win7
    Best Regards.
    Steven Lee
    TechNet Community Support

  • System Locale Information in AIR application

    Hello,
    I am building a Adobe AIR application which will have UI in different languages. To change the language in the UI  we are setting resourceManager.localeChain property to the locale.
    How can I get the system locale information at runtime so that the language can be set at runtime.
    I am using Flex SDK 4.0.
    Regards,
    Karthik

    It looks like if you do
        var defaultLocaleID = new LocaleID(LocaleID.DEFAULT)
    then you can get the language with defaultLocaleID.getLanguage() and the region with defaultLocaleID.getRegion(). But it doesn't give you a list of preferred locales.
    Gordon Smith
    Adobe Flex SDK Team

  • Cant Set System Locale (language for non-Unicode programs)

    Im trying to deploy custom image wherein Input language and location should be English Australia , BUT system locale (language for non-Unicode programs) should be English-us. The requirement is as below
    Standards and Formats: English (Australia)
    Location: Australia
    Default input language: English (Australia) – US
    Installed input languages: English (Australia) – US
    Time zone: Cen. Australia Standard Time
    System Locale
    Language for non-Unicode programs: Default - English (United States)
    Below is my CS.ini
    SkipLocaleSelection=YES
    UserLocale=en-AU
    SystemLocale=en-US
    UIlanguage=en-AU
    KeyboardLocale=0c09:00000409
    SkipTimeZone=YES
    TimeZoneName=Cen. Australia Standard Time
    when image is deployed the language for non-Unicode is also getting set to en-AU while it should be en-US, other language setting are as per the requirement. what should I do :(
    thanks a lot
    Sanju.
     

    that is a little-known known issue
    Check this post:
    http://myitforum.com/cs2/blogs/smslist/archive/2009/01/12/mssms-userlocale-in-mdt-sccm-also-changes-system-locale-9a532hdf.aspx
    He details how to modify the ZTIConifgure.xml file.

  • Palletize 1st class mail according to a local customer/supplier agreement

    We have a local customer/supplier agreement and in it we are not required to make the mixed ADC air sort pallet, our requirement is for the Origin SCF and the Origin mixed ADC Surface pallets.
    We need to find out how to override the palletization to not make the mixed ADC air sort pallet.
    Thanks.

    The only other thing I can think of is to do the following:
    Build the mixed air pallet anyway, but put those packages on the mixed surface pallet, with some kind of separator sheet between the mixed surface (L201) mail and the mixed air (non-L201) pieces.  That makes it easy for the USPS to split off the mail on their part and maybe they will forgive you for having an extra mixed air pallet in your documentation?
    The problem here that the USPS may not accept is that the documentation will not match the physical pallets.  If your local USPS is strict, they may not accept this kind of situation.
    It might be worthwhile to ask though. 
    Glenn

  • How can I change the system locale in Yosemite?

    I have been trying to find a way to change the system locale in Yosemite and searching for ways to do it as well but have yielded no results. Does anyone know how to do this and can help me?

    You could try the indispensable TinkerTool by Marcel Bresink: http://www.bresink.com/osx/TinkerTool.html

  • Problem instantiating bean when system locale is Japanese

    Hi,
    My application is built using VC++ and I use a java bean. This I instantiate uing CoCreateInstance and then call its methods.
    This setup works fine on normal PC using English system locale. I have also tried on PC with system locale set to Hebrew and Dutch. It works there as well.
    Today I set the system locale of my PC to Japanese (Katanaka). When i run my application, it terminates abruptly. On investigation, it was found that when CoCrateInstance tries to instantialte the object of bean, the problem occurs. No exceptions are thrown and no error messages appear. The application simple disappears from the screen.
    Can any body pls help me out.
    Thanx in advance,
    Manish Chaudhary

    I'm not using CoCreateInstance in my VC++ project, tell me where you saw an example using that or why you choose to use that so I can learn. Is your bean not visual?
    All of the packaged java bean Objects inherit from CWnd when imported into VC++ (the header file and cpp file are auto generated)
    With that in mind, I just declare an instance in my View or Document's header file and int he cpp file I call the Create() method of CWnd and pass it some window stuff as well as a CRect.
    As for japanese, I saw on the reallyusefulcomputing article mentioned on other messages in this forum that you should use internal version only. I haven't dealt with this, but figured it was worth a mention.

  • System local V Regional Settings

    Guys,
    I understand now that the system local on a OS determines the character set used based on the language chosen.
    How does this differ from regional settings are they not similiar ?
    Thanks

    If you are looking for the difference then here you go:
    Regional options settings
    The Regional
    Options tab contains the following settings:
    Standards and formats
    These are user-specific settings and are stored as part of the user profile.
    Location
    This is a user-specific setting and is stored as part of the user profile.
    Language settings
    The Languages tab
    contains the following settings:
    Default input language
    This is a user-specific setting and is stored as part of the user profile.
    Installed services
    This is a computer-wide setting.
    Reference: http://support.microsoft.com/en-us/kb/924852
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • [Forum FAQ]Solution for Windows PowerShell console font issue when changing system locale

    Issue description
    After changing Windows System Locale to another country, users cannot modify Windows PowerShell console font to Lucida after modifying the font settings. There is also a potential bug report in Microsoft connect:
    https://connect.microsoft.com/PowerShell/feedback/details/806286/powershell-4-console-font-issue
    Reason
    In most situations, this problem is caused by system locale is changed to other countries from United States, such as Chinese, French, etc. Because of this change, the code page and font of Windows PowerShell console might be changed with system locale.
    For Example, if change system locale to Chinese (Simplified China), Windows PowerShell console
    (%systemdrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools) properties would be changed like this:
    Solution
    To resolve this problem, please follow the steps below:
    Access to the path below to find the shortcut of Windows PowerShell:
    %systemdrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools.
    Right click Windows PowerShell and choose Properties.
    Switch to Options, check if Current code page list there, if that it is, choose
    437 (OEM-United States) and click Apply. Maybe you will encounter an
    Access Deniedpop-up as the following picture.  Then you need take ownership of current PowerShell File, switch to
    Security Tab and obtain full control permission for current User Account.
    Note: if Current code page was not list there, just leave alone
    Options settings and switch to Font Tab.
    Switch to Font Tab, choose the font you wished to use, click
    Apply.
    After the above settings, current Windows PowerShell console font should works as you wished.
    Applies to
    Windows PowerShell 3.0
    Windows PowerShell 4.0
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Cause
    This issue is due to the bootmgr file, we cannot use the bootmgr file of Windows 7 to find the Windows 8 Operating System files.
    The Windows 7 bootmgr can indeed boot Windows 8.
    This is on a BIOS system 
    https://www.youtube.com/watch?v=AVO5aeaKeeE
    This is on a UEFI system 
    https://www.youtube.com/watch?v=g3-K6Fyobz0
    The Windows 8 bootmgr partially loads Windows 8 before offering the boot menu.  By choosing Windows 7, the system must do a reboot.  Using the Windows 7 bootmgr, no reboot is required.
    "Let them that don't want it have memories of not gettin' any." "Gratitude is riches and complaint is poverty and the worst I ever had was wonderful." Brother Dave Gardner. "Experience is what you get when you're looking for something
    else." Sir Thomas Robert Deware

  • Code Page and System Local settings v regional settings

    Hello All
    Can someone please clarify exactly what the system local settings are. I thought they are a total of the keyboard settings, plus the decimal formats and the currency signs. However this looks to be part of the regional settings when you check in control
    panel.
    Also what is the significance of the code page settings. Again I cannot get a clear answer I thought these were language settings defined on the operating system. That are defined at the system level.
    Many thanks

    If you are looking for the difference then here you go:
    Regional options settings
    The Regional
    Options tab contains the following settings:
    Standards and formats
    These are user-specific settings and are stored as part of the user profile.
    Location
    This is a user-specific setting and is stored as part of the user profile.
    Language settings
    The Languages tab
    contains the following settings:
    Default input language
    This is a user-specific setting and is stored as part of the user profile.
    Installed services
    This is a computer-wide setting.
    Reference: http://support.microsoft.com/en-us/kb/924852
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Cluster File system local to Global

    I need to convert a local High available file system to a global file system. The client needs to share data within the cluster and the solution i offered him was this.
    Please let me know if there is a better way to do this. The servers are running 2 failover resource NFS resource groups sharing file systems to clients. Currently the filesystems are configured as HAStoragePlus file systems.
    Thanks

    Tim, thanks much for your reply. I will doing this as a global file system. Currently, the HA file systems are shared out from only one node and I intend to keep it that way. The only difference is i will make the local HA file systems as global.
    I was referring the sun cluster concepts guide which mentions
    http://docs.sun.com/app/docs/doc/820-2554/cachcgee?l=en&a=view
    "A cluster file system to be highly available, the underlying disk storage must be connected to more than one node. Therefore, a local file system (a file system that is stored on a node's local disk) that is made into a cluster file system is not highly available"
    I assume i need to remove the file systems from hastp and make them as global? Please let me know if the understanding is correct...
    Thanks again.

  • [SOLVED]System locale - Swedish and English

    I want to have Swedish in everything except the language in bash etc. But when I restarted everything was in Swedish instead.
    This is my /etc/locale.conf
    LANG="en_GB.UTF-8"
    LC_CTYPE="sv_SE.utf8"
    LC_NUMERIC="sv_SE.utf8"
    LC_TIME="sv_SE.utf8"
    LC_COLLATE="C"
    LC_MONETARY="sv_SE.utf8"
    LC_MESSAGES="sv_SE.utf8"
    LC_PAPER="sv_SE.utf8"
    LC_NAME="sv_SE.utf8"
    LC_ADDRESS="sv_SE.utf8"
    LC_TELEPHONE="sv_SE.utf8"
    LC_MEASUREMENT="sv_SE.utf8"
    LC_IDENTIFICATION="sv_SE.utf8"
    I've restarted the system as well.
    Last edited by johnnyponny (2012-08-19 14:58:46)

    Change LC_MESSAGES to en_GB.utf8 as a start.
    LC_MESSAGES
    changes the language messages are displayed in and what
    an affirmative or negative answer looks like. The GNU
    C-library contains the gettext(3), ngettext(3), and
    rpmatch(3) functions to ease the use of these informa‐
    tion. The GNU gettext family of functions also obey
    the environment variable LANGUAGE (containing a colon-
    separated list of locales) if the category is set to a
    valid locale other than "C".
    Last edited by Mr.Elendig (2012-08-19 11:27:25)

  • System Locale Change event

    Hi all.
    How to catch the locale change event from system. (e.g. Alt+Shift). ?
    Thanks.

    Hi Abhi_2112,
    Thank you for your update.
    You should install Marathi-Indian language pack from the link below:
    Language packs:
    http://windows.microsoft.com/en-IN/windows/language-packs#lptabs=win7
    Please note: the Base language and edition required before download.
    For more information, you may also refer to: Available Language Packs
    http://technet.microsoft.com/en-us/library/dd744369(v=ws.10).aspx
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • Is there a minimum system requirement workaround?

    I know that developers recommend, or force, minimum system requirements for a reason, to give the users the best experiance. However, this negates system upgrades (especially from third-parties). For example, I wish to run encyclopaedia britannica 2007 on my dual 1.6GHz powermac G4, the minimum being a G5 processor. Surely this configuration is enough. My question is 'is there a way I can bypass this check on, not just britannica, but other software (e.g. is there an application to 'fool' the system)?' Thanks alot.

    One thing to note is that developers usually will not support their products on systems that don't meet the published minimums. So if you get it to install but have a problem, it''s quite likely that the publisher will refuse to assist. So think about that before purchasing any product that doesn't meet the minimums.
    And I'd highly recommend that you confirm that any such product will at least install on your system before you buy the software; some installer checks flat cannot be bypassed.
    is there an application to feign higher system components?
    No.

  • System locale for Romanian - Moldava

    Hi,
     I need to set Modova as Current Location  under Region & language -> Location using MDT. I tried to set the below as User Locale  and it is not changed after the OSD Completed
    ro-mo
    0418-00000418
    ro-RO
    Please let me know what will be the User Locale Id

    Hi,
    Here is a sample for setting User Locales and values for MDT.
    UILanguage=ro-RO
    UserLocale=0418:00000418
    InputLocale= 0418:00000418
    KeyboardLocale= 0418:00000418
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • Get bind variables of a dynamic view object

    I seem unable to retrieve the bind variables for a dynamically created view object, even though I can do the same thing for a regular view object. Here is the code: newVO = repServ.createViewObjectFromQueryStmt("newQry",strSql); VariableValueManager

  • How to set up attachments on mac mail

    When i attach a document in my email the whole document appears in the body of the email not as an icon at the bottom

  • Connection to B1i timed out.

    SAP Business One 8.8 PL15 Finally found the install file for B1iC and uninstalled and reinstalled it to reset the B1iadmin user password so I could enter the integration framework site. Well after getting all of the passwords correct I know get an er

  • Customer hierarchy change log

    I would like to know if there is a way to see the change log in transaction VDH1N?  We made a few changes to the hierarchy and would like to know the date and the user who made the changes.  Is there a table that captures these changes, or a function

  • Could not instantiate InteractionSpec

    Hi, Please help me to find out cause of this error, <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during i