You are not logged in.

#1 2013-07-19 02:49:52

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

[solved] Cannot set locale - split thread

Moderator Edit:  This thread was split from https://bbs.archlinux.org/viewtopic.php … 2#p1153052


gauthma wrote:

I know it's against forum policy to "resurrect" old threads, but I wanted to close this one with a definitive reason: my initial problem -- locale not being set -- was because one of the scripts in /etc/profile.d/ did an exec, and that prevented locale.sh from running (the script was sourced before locale.sh).

The reason why this took so long to figure out was because I had (and have) a workaround, so I never really looked into it (in fairness, I thought the problem was related to systemd, and not the shell scripts). Until now, when I had to install arch on a new machine.

A (long overdue) thanks for all the feedback! smile


I have the same issue here. Could you tell me which script is preventing locale.sh from running?

Thanks.

Last edited by enihcam (2013-07-21 13:04:34)

Offline

#2 2013-07-19 10:10:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

enihcam, please open a new thread and post the output of

ls -l /etc/profile.d

Offline

#3 2013-07-19 14:04:44

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

enihcam, please open a new thread and post the output of

ls -l /etc/profile.d
archbox / # ls -l /etc/profile.d/
total 52K
-rwxr-xr-x 1 root root  136 Jul 19 08:15 fcitx.sh*
-rwxr-xr-x 1 root root  102 May 12 16:07 gpm.sh*
-rwxr-xr-x 1 root root   46 Jul  9 03:41 jdk.csh*
-rwxr-xr-x 1 root root   45 Jul  9 03:41 jdk.sh*
-rwxr-xr-x 1 root root  140 Jul  9 03:40 jre.csh*
-rwxr-xr-x 1 root root  217 Jul 16 00:46 jre-gtk.sh*
-rwxr-xr-x 1 root root  152 Jul  9 03:40 jre.sh*
-rwxr-xr-x 1 root root   43 Feb  5 23:43 lesspipe.sh*
-rwxr-xr-x 1 root root 1.2K Jun  1 02:40 locale.sh*
-rwxr-xr-x 1 root root   50 Sep 10  2011 mozilla-common.csh*
-rwxr-xr-x 1 root root   50 Sep 10  2011 mozilla-common.sh*
-rwxr-xr-x 1 root root  699 May 19 20:56 perlbin.csh*
-rwxr-xr-x 1 root root  668 May 19 20:56 perlbin.sh*

Offline

#4 2013-07-19 14:18:24

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

I just realized it might be because 'source /etc/profile' is missing somewhere, but I don't know where is the proper/official place to add that. Anybody knows? I use slim+Xfce4.

Offline

#5 2013-07-19 14:22:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

Let's start from the beginning: why do you think the script is at fault? Is something wrong with your locale? If so, please post the output of

locale
locale -a
localectl

Edit:

enihcam wrote:

I just realized it might be because 'source /etc/profile' is missing somewhere, but I don't know where is the proper/official place to add that. Anybody knows? I use slim+Xfce4.

I know nothing about xfce or slim, but locale.sh should be sourced in /etc/profile.

Last edited by karol (2013-07-19 14:25:49)

Offline

#6 2013-07-19 16:11:25

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

Let's start from the beginning: why do you think the script is at fault? Is something wrong with your locale? If so, please post the output of

locale
locale -a
localectl

same as the output from the post author.

Edit:

enihcam wrote:

I just realized it might be because 'source /etc/profile' is missing somewhere, but I don't know where is the proper/official place to add that. Anybody knows? I use slim+Xfce4.

I know nothing about xfce or slim, but locale.sh should be sourced in /etc/profile.

Yes, after add the following lines to /etc/X11/xinit/xinitrc, the issue is resolved:

sysprofile=/etc/profile

if [ -f $sysprofile ]; then
    source $sysprofile
fi

Thanks for helping.

Offline

#7 2013-07-19 16:14:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

You shouldn't edit /etc/X11/xinit/xinitrc, copy that file to you user's home directory and make changes then.
locale should be set not only for X, so doing this in .xinitrc is wrong.

Offline

#8 2013-07-20 00:54:14

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

You shouldn't edit /etc/X11/xinit/xinitrc, copy that file to you user's home directory and make changes then.
locale should be set not only for X, so doing this in .xinitrc is wrong.

So where should I put it to, if i'm not using X?
Is it supposed to be done for text console beforehand? Why it is missing?

Offline

#9 2013-07-20 00:57:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

1. I'm not sure why no moderator stepped in, but I still would like you to open a new thread. This one is marked as solved and your issue may be different from the OP's.
2. When you open a new thread, please post the output of

locale
locale -a
localectl

so we have an idea what's wrong.

Offline

#10 2013-07-20 01:30:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: [solved] Cannot set locale - split thread

Yes, I think that Karol is correct.  When the thread came back to life, the OP was reporting back with the solution.  This is starting to diverge.

Splitting thread and closing the original.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2013-07-20 03:10:55

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

1. I'm not sure why no moderator stepped in, but I still would like you to open a new thread. This one is marked as solved and your issue may be different from the OP's.
2. When you open a new thread, please post the output of

locale
locale -a
localectl

so we have an idea what's wrong.

locale

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

locale -a

C
en_US
en_US.iso88591
en_US.utf8
POSIX
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8

localectl

   System Locale: LANG=en_US.utf8
       VC Keymap: windowkeys
      X11 Layout: n/a

Offline

#12 2013-07-20 09:40:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

What seems to be the problem?

Offline

#13 2013-07-20 11:49:21

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [solved] Cannot set locale - split thread

Odd, the lowercase 'utf-8' in the output of the plain 'locale' and 'localectl' commands.  My output has 'UTF-8' printed.  Check that the setting in /etc/locale.conf is written as:

LANG=en_US.UTF-8

I remember, back in the days of rc.d in Arch, some people had problems when a locale variable they had set did not match exactly the capitalization used in '/etc/locale.gen'.

Offline

#14 2013-07-20 15:18:54

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

Notes:
1. Only gtk2+slim+xfce4. No gtk3; No QT.
2. I made sure there exists no order issue; env variables are set up before startxfce4
3. I set LC_CTYPE=zh_CN


nanw@archbox ~ $ fcitx-diagnose 
# System Info:
1.  `uname -a`:

        Linux archbox 3.10.1-2-ck #1 SMP PREEMPT Sun Jul 14 07:06:13 EDT 2013 x86_64 GNU/Linux

2.  `lsb_release`:

    `lsb_release` not found.

3.  `/etc/lsb-release`:

    `/etc/lsb-release` not found.

4.  `/etc/os-release`:

        NAME="Arch Linux"
        ID=arch
        PRETTY_NAME="Arch Linux"
        ANSI_COLOR="0;36"
        HOME_URL="https://www.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://bugs.archlinux.org/"

5.  Desktop Environment:

    Desktop environment is `xfce`.

# Environment:
1.  DISPLAY:

        DISPLAY=':0.0'

2.  Keyboard Layout:

    1.  `setxkbmap`:

            xkb_keymap {
            	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
            	xkb_types     { include "complete"	};
            	xkb_compat    { include "complete"	};
            	xkb_symbols   { include "pc+us+inet(evdev)"	};
            	xkb_geometry  { include "pc(pc104)"	};
            };

    2.  `xprop`:

        `xprop` not found.

3.  Locale:

    1.  All locale:

            C
            en_US
            en_US.iso88591
            en_US.utf8
            POSIX
            zh_CN
            zh_CN.gb18030
            zh_CN.gb2312
            zh_CN.gbk
            zh_CN.utf8

    2.  Current locale:

            LANG=en_US.utf8
            LC_CTYPE=zh_CN.utf8
            LC_NUMERIC="en_US.utf8"
            LC_TIME="en_US.utf8"
            LC_COLLATE="en_US.utf8"
            LC_MONETARY="en_US.utf8"
            LC_MESSAGES="en_US.utf8"
            LC_PAPER="en_US.utf8"
            LC_NAME="en_US.utf8"
            LC_ADDRESS="en_US.utf8"
            LC_TELEPHONE="en_US.utf8"
            LC_MEASUREMENT="en_US.utf8"
            LC_IDENTIFICATION="en_US.utf8"
            LC_ALL=

# Fcitx State:
1.  executable:

    Found fcitx at `/usr/bin/fcitx`.

2.  version:

    Fcitx version: `4.2.8.1`

3.  process:

    Found 2 fcitx processes:

         2618 fcitx
         2627 fcitx-dbus-watc

4.  `fcitx-remote`:

    `fcitx-remote` works properly.

# Fcitx Configure UI:
1.  Config Tool Wrapper:

    Found fcitx-configtool at `/usr/bin/fcitx-configtool`.

2.  Config GUI for gtk2:

    **Config GUI for gtk2 not found.**

3.  Config GUI for gtk3:

    **Config GUI for gtk3 not found.**

4.  Config GUI for kde:

    **`kcmshell4` not found.**

    **Cannot find a GUI config tool, please install one of `kcm-fcitx`, `fcitx-config-gtk2`, or `fcitx-config-gtk3`.**

# Frontends setup:
## Xim:
1.  `${XMODIFIERS}`:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

    **`xprop` not found.**

## Qt:
1.  `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

2.  Qt IM module files:
    Qt4**Cannot find fcitx input method module for ${1}.**
    Qt5**Cannot find fcitx input method module for ${1}.**

## Gtk:
1.  `${GTK_IM_MODULE}`:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

2.  `gtk-query-immodules`:

    1.  gtk 2:

        Found `gtk-query-immodules` for gtk `2.24.20` at `/usr/bin/gtk-query-immodules-2.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.20

        Found fcitx im modules for gtk `2.24.20`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so" 
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        **Cannot find `gtk-query-immodules` for gtk 3**

        **Cannot find fcitx im module for gtk 3.**

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodule cache for unknown gtk version at `/etc/gtk-2.0/immodules.cache`.
        Found fcitx im modules for gtk `2`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so" 
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "en:zh:*"

        **Cannot find immodules cache for gtk 2**

        **Cannot find fcitx im module for gtk 2 in cache.**

    2.  gtk 3:

        **Cannot find immodules cache for gtk 3**

        **Cannot find fcitx im module for gtk 3 in cache.**

4.  Gtk IM module files:

    1.  gtk 2:

        All found Gtk 2 immodule files exist.

    2.  gtk 3:

        All found Gtk 3 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

    Found fcitx addon config directory: `/usr/share/fcitx/addon`.

2.  Addon List:

    1.  Found 26 enabled addons:

            fcitx-autoeng
            fcitx-chttrans
            fcitx-classic-ui
            fcitx-clipboard
            fcitx-dbus
            fcitx-freedesktop-notify
            fcitx-fullwidth-char
            fcitx-googlepinyin
            fcitx-imselector
            fcitx-ipc
            fcitx-keyboard
            fcitx-kimpanel-ui
            fcitx-notificationitem
            fcitx-pinyin
            fcitx-pinyin-enhance
            fcitx-punc
            fcitx-quickphrase
            fcitx-remote
            fcitx-spell
            fcitx-table
            fcitx-unicode
            fcitx-vk
            fcitx-x11
            fcitx-xim
            fcitx-xkb
            fcitx-xkbdbus

    2.  Found 1 disabled addons:

            fcitx-qw

    3.  User Interface:

        Found 2 enabled user interface addons:

            fcitx-classic-ui
            fcitx-kimpanel-ui

## Input Methods:
1.  Found 1 enabled input methods:

        fcitx-keyboard-us

2.  Default input methods:

    **You only have one input method enabled, please add a keyboard input method as the first one and your main input method as the second one.**

# Log:
1.  `date`:

        Sat Jul 20 23:04:28 CST 2013

2.  `~/.config/fcitx/log/`:

        total 0

3.  `~/.config/fcitx/log/crash.log`:

    `~/.config/fcitx/log/crash.log` not found.
nanw@archbox /etc/gtk-2.0 $ ls -l
total 8.0K
lrwxrwxrwx 1 root root  15 Jul 20 22:48 gtk.immodules -> immodules.cache
lrwxrwxrwx 1 root root  20 Jul 14 22:17 gtkrc -> ../xdg/gtk-2.0/gtkrc
-rw-r--r-- 1 root root 244 Jul 20 09:23 immodules.cache
-rw-r--r-- 1 root root 890 Jul  5 05:05 im-multipress.conf
nanw@archbox /usr/lib/gtk-2.0/2.10.0 $ ls -l
total 12K
drwxr-xr-x 2 root root 4.0K Jul 14 15:54 engines/
lrwxrwxrwx 1 root root   26 Jul 20 21:01 gtk.immodules -> /etc/gtk-2.0/gtk.immodules
drwxr-xr-x 2 root root 4.0K Jul 20 22:01 immodules/
lrwxrwxrwx 1 root root   26 Jul 20 22:04 immodules.cache -> /etc/gtk-2.0/gtk.immodules
drwxr-xr-x 2 root root 4.0K Jul  5 05:05 printbackends/
nanw@archbox /etc $ cat slim.conf | grep xinitrc
login_cmd           exec /bin/sh - /etc/X11/xinit/xinitrc %session
nanw@archbox /etc/X11/xinit $ cat xinitrc
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
sysprofile=/etc/profile

if [ -f $sysprofile ]; then
    source $sysprofile
fi

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
	for f in /etc/X11/xinit/xinitrc.d/* ; do
		[ -x "$f" ] && . "$f"
	done
	unset f
fi

exec dbus-launch --exit-with-session startxfce4
nanw@archbox /etc/profile.d $ cat fcitx.sh 
#!/bin/sh

export XIM=fcitx
export XIM_PROGRAM=/usr/bin/fcitx
export XIM_ARGS="-d"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
Jul 20 22:51:20 archbox slim[242]: Fcitx seems is not running
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-freedesktop-notify.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-remote-module.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-pinyin-enhance.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-qw.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-autoeng.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-keyboard.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-googlepinyin.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-pinyin.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-spell.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-quickphrase.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-kimpanel-ui.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-vk.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-punc.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-chttrans.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-x11.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-classic-ui.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-ipc.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-xim.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-fullwidth-char.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-xkb.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-dbus.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-xkbdbus.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-unicode.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-clipboard.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-notificationitem.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-imselector.conf
Jul 20 22:51:20 archbox slim[242]: (INFO-2618 /build/fcitx/src/fcitx-4.2.8.1/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-table.conf

Offline

#15 2013-07-20 15:31:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

What's wrong with the old thread: https://bbs.archlinux.org/viewtopic.php?id=166953 ?
How did you set I set LC_CTYPE=zh_CN ?

Offline

#16 2013-07-20 15:38:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: [solved] Cannot set locale - split thread

Please do not cross post.  Merging with existing thread.

enihcam,  If you would like me to move your thread, please use the 'report' link and leave a note for the moderators.  We will be glad to do so.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#17 2013-07-21 01:20:15

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

ewaller wrote:

Please do not cross post.  Merging with existing thread.

enihcam,  If you would like me to move your thread, please use the 'report' link and leave a note for the moderators.  We will be glad to do so.

I don't understand. The two topics are totally different.

Offline

#18 2013-07-21 01:22:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

Both seem to deal with your locale issue, as far as I can tell.

Offline

#19 2013-07-21 01:25:00

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

What seems to be the problem?

There's no problems with the locale I think. My last question actually was

enihcam wrote:
karol wrote:

You shouldn't edit /etc/X11/xinit/xinitrc, copy that file to you user's home directory and make changes then.
locale should be set not only for X, so doing this in .xinitrc is wrong.

So where should I put it to, if i'm not using X?
Is it supposed to be done for text console beforehand? Why it is missing?

Offline

#20 2013-07-21 01:26:24

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

What's wrong with the old thread: https://bbs.archlinux.org/viewtopic.php?id=166953 ?
How did you set I set LC_CTYPE=zh_CN ?

I set that by using localectl

Offline

#21 2013-07-21 01:28:41

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

Both seem to deal with your locale issue, as far as I can tell.

Yes, but one end up with two questions which are not blocking fcitx setup, whereas another is totally about fcitx, although it has few pre-setups with locale.

Offline

#22 2013-07-21 01:50:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Cannot set locale - split thread

You never said what was the problem in the first thread you started. I thought you're posting more info on the same subject, so I suggested merging the threads.

Offline

#23 2013-07-21 13:04:06

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: [solved] Cannot set locale - split thread

karol wrote:

You never said what was the problem in the first thread you started. I thought you're posting more info on the same subject, so I suggested merging the threads.

Sorry my bad. Since both issues are resolved (i changed fcitx to scim), I think the post can be end here. smile

Offline

Board footer

Powered by FluxBB