Leap 42.2 英文环境加装 fcitx,默认的 libreoffice 5.2.3.3 无法输入中文

我输入法装的没问题,Fcitx + Google 拼音
系统是 42.2 Leap x86_64,libreoffice 版本是默认安装的 Version: 5.2.3.3
我的是英文系统 ,在 YaST 里面加了中文作为第二语言。

Firefox 和 Kwrite 都可以用,能正常输入中文,进 libreoffice 可以用 Ctr + Space 调出 Google 拼音,
在 libreoffice 里面,正常打完拼音,按空格选字的时候没反映,字出不来。

有人有这个问题么?还有,libreoffice 没法打开任何中文名的文件,

Firefox 也没法正常下载任何的中文名的文件,下完了也打不开,下载的中文解压出来全成乱码。

@prism_123

编辑了一下帖子。

一帖一问,先解决 fcitx 的问题:

fcitx 有提供了一个 /usr/bin/fcitx-diagnose 工具

/usr/bin/fcitx-diagnose > ~/diagnose.txt

然后把那个 diagnose.txt 的内容发一下。

从我的 iPhone 发送,使用 Tapatalk

我用的也是 openSUSE 42.2 英文版,把語言包裝好,確認安裝了 fcitx fcitx-googlepinyin(我自己還裝了 fcitx-libpinyin 用於輸入正體漢字),然後設置 /etc/sysconfig Editor 中的 System>>Environment>>Language>>IMPUT_METHOD,默認 fcitx 輸入法,再設定 fcitx config,裝上 google pinyin(我還裝了 libpinyin),重新啓動一下就可以了。

pan.baidu.com/s/1kVMACth 这个是诊断出来的,.txt 文件。

为了方便,我还在下面 用 code 贴出来了。

# System Info:
1.  `uname -a`:

        Linux linux-m44i 4.4.49-16-default #1 SMP Sun Feb 19 17:40:35 UTC 2017 (70e9954) x86_64 x86_64 x86_64 GNU/Linux

2.  `lsb_release -a`:

        LSB Version:	n/a
        Distributor ID:	openSUSE project
        Description:	openSUSE Leap 42.2
        Release:	42.2
        Codename:	n/a

3.  `lsb_release -d`:

        Description:	openSUSE Leap 42.2

4.  `/etc/lsb-release`:

    `/etc/lsb-release` not found.

5.  `/etc/os-release`:

        NAME="openSUSE Leap"
        VERSION="42.2"
        ID=opensuse
        ID_LIKE="suse"
        VERSION_ID="42.2"
        PRETTY_NAME="openSUSE Leap 42.2"
        ANSI_COLOR="0;32"
        CPE_NAME="cpe:/o:opensuse:leap:42.2"
        BUG_REPORT_URL="https://bugs.opensuse.org"
        HOME_URL="https://www.opensuse.org/"

6.  Desktop Environment:

    Desktop environment is `kde`.

7.  Bash Version:

        BASH_VERSION='4.3.42(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':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)+terminate(ctrl_alt_bksp)"	};
            	xkb_geometry  { include "pc(pc105)"	};
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""

3.  Locale:

    1.  All locale:

            C
            C.utf8
            POSIX
            aa_DJ
            aa_DJ.utf8
            aa_ER
            aa_ER@saaho
            aa_ET
            af_ZA
            af_ZA.utf8
            ak_GH
            am_ET
            an_ES
            an_ES.utf8
            anp_IN
            ar_AE
            ar_AE.utf8
            ar_BH
            ar_BH.utf8
            ar_DZ
            ar_DZ.utf8
            ar_EG
            ar_EG.utf8
            ar_IN
            ar_IQ
            ar_IQ.utf8
            ar_JO
            ar_JO.utf8
            ar_KW
            ar_KW.utf8
            ar_LB
            ar_LB.utf8
            ar_LY
            ar_LY.utf8
            ar_MA
            ar_MA.utf8
            ar_OM
            ar_OM.utf8
            ar_QA
            ar_QA.utf8
            ar_SA
            ar_SA.utf8
            ar_SD
            ar_SD.utf8
            ar_SS
            ar_SY
            ar_SY.utf8
            ar_TN
            ar_TN.utf8
            ar_YE
            ar_YE.utf8
            as_IN
            ast_ES
            ast_ES.utf8
            ayc_PE
            az_AZ
            be_BY
            be_BY.utf8
            be_BY@latin
            bem_ZM
            ber_DZ
            ber_MA
            bg_BG
            bg_BG.utf8
            bhb_IN.utf8
            bho_IN
            bn_BD
            bn_IN
            bo_CN
            bo_IN
            br_FR
            br_FR.utf8
            br_FR@euro
            brx_IN
            bs_BA
            bs_BA.utf8
            byn_ER
            ca_AD
            ca_AD.utf8
            ca_ES
            ca_ES.utf8
            ca_ES@euro
            ca_FR
            ca_FR.utf8
            ca_IT
            ca_IT.utf8
            ce_RU
            cmn_TW
            crh_UA
            cs_CZ
            cs_CZ.utf8
            csb_PL
            cv_RU
            cy_GB
            cy_GB.utf8
            da_DK
            da_DK.utf8
            de_AT
            de_AT.utf8
            de_AT@euro
            de_BE
            de_BE.utf8
            de_BE@euro
            de_CH
            de_CH.utf8
            de_DE
            de_DE.utf8
            de_DE@euro
            de_LU
            de_LU.utf8
            de_LU@euro
            doi_IN
            dv_MV
            dz_BT
            el_CY
            el_CY.utf8
            el_GR
            el_GR.utf8
            en_AG
            en_AU
            en_AU.utf8
            en_BE
            en_BE.utf8
            en_BE@euro
            en_BW
            en_BW.utf8
            en_CA
            en_CA.utf8
            en_DK
            en_DK.utf8
            en_GB
            en_GB.iso885915
            en_GB.utf8
            en_HK
            en_HK.utf8
            en_IE
            en_IE.utf8
            en_IE@euro
            en_IN
            en_NG
            en_NZ
            en_NZ.utf8
            en_PH
            en_PH.utf8
            en_SG
            en_SG.utf8
            en_US
            en_US.iso885915
            en_US.utf8
            en_ZA
            en_ZA.utf8
            en_ZM
            en_ZW
            en_ZW.utf8
            es_AR
            es_AR.utf8
            es_BO
            es_BO.utf8
            es_CL
            es_CL.utf8
            es_CO
            es_CO.utf8
            es_CR
            es_CR.utf8
            es_CU
            es_DO
            es_DO.utf8
            es_EC
            es_EC.utf8
            es_ES
            es_ES.utf8
            es_ES@euro
            es_GT
            es_GT.utf8
            es_HN
            es_HN.utf8
            es_MX
            es_MX.utf8
            es_NI
            es_NI.utf8
            es_PA
            es_PA.utf8
            es_PE
            es_PE.utf8
            es_PR
            es_PR.utf8
            es_PY
            es_PY.utf8
            es_SV
            es_SV.utf8
            es_US
            es_US.utf8
            es_UY
            es_UY.utf8
            es_VE
            es_VE.utf8
            et_EE
            et_EE.iso885915
            et_EE.utf8
            eu_ES
            eu_ES.utf8
            eu_ES@euro
            fa_IR
            ff_SN
            fi_FI
            fi_FI.utf8
            fi_FI@euro
            fil_PH
            fo_FO
            fo_FO.utf8
            fr_BE
            fr_BE.utf8
            fr_BE@euro
            fr_CA
            fr_CA.utf8
            fr_CH
            fr_CH.utf8
            fr_FR
            fr_FR.utf8
            fr_FR@euro
            fr_LU
            fr_LU.utf8
            fr_LU@euro
            fur_IT
            fy_DE
            fy_NL
            ga_IE
            ga_IE.utf8
            ga_IE@euro
            gd_GB
            gd_GB.utf8
            gez_ER
            gez_ER@abegede
            gez_ET
            gez_ET@abegede
            gl_ES
            gl_ES.utf8
            gl_ES@euro
            gu_IN
            gv_GB
            gv_GB.utf8
            ha_NG
            hak_TW
            he_IL
            he_IL.utf8
            hi_IN
            hne_IN
            hr_HR
            hr_HR.utf8
            hsb_DE
            hsb_DE.utf8
            ht_HT
            hu_HU
            hu_HU.utf8
            hy_AM
            hy_AM.armscii8
            ia_FR
            id_ID
            id_ID.utf8
            ig_NG
            ik_CA
            is_IS
            is_IS.utf8
            it_CH
            it_CH.utf8
            it_IT
            it_IT.utf8
            it_IT@euro
            iu_CA
            iw_IL
            iw_IL.utf8
            ja_JP.eucjp
            ja_JP.shiftjisx0213
            ja_JP.sjis
            ja_JP.utf8
            ka_GE
            ka_GE.utf8
            kk_KZ
            kk_KZ.utf8
            kl_GL
            kl_GL.utf8
            km_KH
            kn_IN
            ko_KR.euckr
            ko_KR.utf8
            kok_IN
            ks_IN
            ks_IN@devanagari
            ku_TR
            ku_TR.utf8
            kw_GB
            kw_GB.utf8
            ky_KG
            lb_LU
            lg_UG
            lg_UG.utf8
            li_BE
            li_NL
            lij_IT
            lo_LA
            lt_LT
            lt_LT.utf8
            lv_LV
            lv_LV.utf8
            lzh_TW
            mag_IN
            mai_IN
            mg_MG
            mg_MG.utf8
            mhr_RU
            mi_NZ
            mi_NZ.utf8
            mk_MK
            mk_MK.utf8
            ml_IN
            mn_MN
            mni_IN
            mr_IN
            ms_MY
            ms_MY.utf8
            mt_MT
            mt_MT.utf8
            my_MM
            nan_TW
            nan_TW@latin
            nb_NO
            nb_NO.utf8
            nds_DE
            nds_NL
            ne_NP
            nhn_MX
            niu_NU
            niu_NZ
            nl_AW
            nl_BE
            nl_BE.utf8
            nl_BE@euro
            nl_NL
            nl_NL.utf8
            nl_NL@euro
            nn_NO
            nn_NO.utf8
            no_NO
            no_NO.utf8
            nr_ZA
            nso_ZA
            oc_FR
            oc_FR.utf8
            om_ET
            om_KE
            om_KE.utf8
            or_IN
            os_RU
            pa_IN
            pa_PK
            pap_AN
            pap_AW
            pap_CW
            pl_PL
            pl_PL.utf8
            ps_AF
            pt_BR
            pt_BR.utf8
            pt_PT
            pt_PT.utf8
            pt_PT@euro
            quz_PE
            raj_IN
            ro_RO
            ro_RO.utf8
            ru_RU
            ru_RU.koi8r
            ru_RU.utf8
            ru_UA
            ru_UA.utf8
            rw_RW
            sa_IN
            sat_IN
            sc_IT
            sd_IN
            sd_IN@devanagari
            se_NO
            shs_CA
            si_LK
            sid_ET
            sk_SK
            sk_SK.utf8
            sl_SI
            sl_SI.utf8
            so_DJ
            so_DJ.utf8
            so_ET
            so_KE
            so_KE.utf8
            so_SO
            so_SO.utf8
            sq_AL
            sq_AL.utf8
            sq_MK
            sr_ME
            sr_RS
            sr_RS@latin
            ss_ZA
            st_ZA
            st_ZA.utf8
            sv_FI
            sv_FI.utf8
            sv_FI@euro
            sv_SE
            sv_SE.utf8
            sw_KE
            sw_TZ
            szl_PL
            ta_IN
            ta_LK
            tcy_IN.utf8
            te_IN
            tg_TJ
            tg_TJ.utf8
            th_TH
            th_TH.utf8
            the_NP
            ti_ER
            ti_ET
            tig_ER
            tk_TM
            tl_PH
            tl_PH.utf8
            tn_ZA
            tr_CY
            tr_CY.utf8
            tr_TR
            tr_TR.utf8
            ts_ZA
            tt_RU
            tt_RU@iqtelif
            ug_CN
            uk_UA
            uk_UA.utf8
            unm_US
            ur_IN
            ur_PK
            uz_UZ
            uz_UZ.utf8
            uz_UZ@cyrillic
            ve_ZA
            vi_VN
            wa_BE
            wa_BE.utf8
            wa_BE@euro
            wae_CH
            wal_ET
            wo_SN
            xh_ZA
            xh_ZA.utf8
            yi_US
            yi_US.utf8
            yo_NG
            yue_HK
            zh_CN
            zh_CN.gb18030
            zh_CN.gbk
            zh_CN.utf8
            zh_HK
            zh_HK.utf8
            zh_SG
            zh_SG.gbk
            zh_SG.utf8
            zh_TW
            zh_TW.euctw
            zh_TW.utf8
            zu_ZA
            zu_ZA.utf8

    2.  Current locale:

            LANG=mn_CN.UTF-8
            LC_CTYPE="mn_CN.UTF-8"
            LC_NUMERIC="mn_CN.UTF-8"
            LC_TIME="mn_CN.UTF-8"
            LC_COLLATE="mn_CN.UTF-8"
            LC_MONETARY="mn_CN.UTF-8"
            LC_MESSAGES="mn_CN.UTF-8"
            LC_PAPER="mn_CN.UTF-8"
            LC_NAME="mn_CN.UTF-8"
            LC_ADDRESS="mn_CN.UTF-8"
            LC_TELEPHONE="mn_CN.UTF-8"
            LC_MEASUREMENT="mn_CN.UTF-8"
            LC_IDENTIFICATION="mn_CN.UTF-8"
            LC_ALL=

        **Error occurs when running `locale`. Please check your locale settings.**

            locale: Cannot set LC_CTYPE to default locale: No such file or directory
            locale: Cannot set LC_MESSAGES to default locale: No such file or directory
            locale: Cannot set LC_ALL to default locale: No such file or directory

4.  Directories:

    1.  Home:

            /home/xzw

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

        Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/xzw/.config`).

    3.  Fcitx Settings Directory:

        Current fcitx settings directory is `~/.config/fcitx` (`/home/xzw/.config/fcitx`).

5.  Current user:

    The script is run as xzw (1000).

# Fcitx State:
1.  executable:

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

2.  version:

    Fcitx version: `4.2.9.1`

3.  process:

    Found 2 fcitx processes:

         1738 fcitx
         1750 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:

    Found `fcitx-config-gtk3` at `/usr/bin/fcitx-config-gtk3`.

4.  Config GUI for kde:

# 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:

    Xim server name is the same with that set in the environment variable.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

3.  Qt IM module files:
    Found fcitx qt module: `/usr/lib64/fcitx/qt/libfcitx-libpinyin-dictmanager.so`.
    Found fcitx qt module: `/usr/lib64/fcitx/qt/libfcitx-quickphrase-editor.so`.
    Found unknown fcitx qt module: `/usr/lib64/qt5/plugins/kcm_fcitx.so`.
    Found fcitx im module for Qt5: `/usr/lib64/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    Found fcitx im module for Qt4: `/usr/lib64/qt4/plugins/inputmethods/qtim-fcitx.so`.

## Gtk:
1.  gtk - `${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.31` at `/usr/bin/gtk-query-immodules-2.0-64`.
        Version Line:

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

        Found fcitx im modules for gtk `2.24.31`.

            "/usr/lib64/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:

        Found `gtk-query-immodules` for gtk `3.20.9` at `/usr/bin/gtk-query-immodules-3.0-64`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0-64 from gtk+-3.20.9

        Found fcitx im modules for gtk `3.20.9`.

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

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.31` at `/usr/lib64/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

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

        Found fcitx im modules for gtk `2.24.31`.

            "/usr/lib64/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:

        Found immodules cache for gtk `3.20.9` at `/usr/lib64/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0-64 from gtk+-3.20.9

        Found fcitx im modules for gtk `3.20.9`.

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

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 30 enabled addons:

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

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 2 enabled user interface addons:

        fcitx-classic-ui
        fcitx-kimpanel-ui

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

        fcitx-keyboard-us
        googlepinyin

2.  Default input methods:

    You have a keyboard input method "fcitx-keyboard-us" correctly added as your default input method.

# Log:
1.  `date`:

        Tue Mar 14 19:55:52 CST 2017

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

        total 4
        -rw-r--r-- 1 xzw users 44 Mar 12 02:12 crash.log

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

        fcitx: BadWindow (invalid Window parameter)

@prism_123

fcitx-diagnose 说你的 locale 设置有问题:

mn_CN.UTF-8

没有这个 locale 的,正确的是 zh_CN.UTF-8 。

你是怎么设置出这个 locale 的…/etc/sysconfig/language 发出来看下。别的都没问题,我看你 fcitx 的 gtk immodule 也都装了。

先改好 locale 试试看。

看一下你的 libreoffice 的文档默认语言设置是否是中文,这个设置为中文比较好。最好把 libreoffice 的中文汉化包装上,里面可能有字体啊什么的,如果你想用英文的话,可以把你的界面语言设置为英文。

~/Downloads> cat /etc/sysconfig/language

## Path:        System/Environment/Language
## Type:        string(ibus,fcitx,gcin,scim,scim-bridge,uim,kinput2,kinput2-canna,kinput2-wnn,nabi,wnn,atokx,xcin,none)
## Default:     ""
#
# A default input method to be used in X11 can be selected here.
# If this variable is set and a script with the same name
# as the value of this variable exists in the directory /etc/X11/xim.d/
# this script is sourced when X11 is started to start an input method.
#
# The special value "none" (/etc/X11/xim.d/none) means:
# Do not use any input method at all.
#
# For more details see the comments at the top of /etc/X11/xim.
#
INPUT_METHOD="fcitx"
## Path:        System/Environment/Language
## Description:
## Type:        string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8-R,ru_RU.UTF-8,sk_SK.ISO-8859-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-8)
## Default:     ""
## Config:      OpenOffice.org,groff,ispell,kde,kdm,profiles,susehelp,susewm,tetex,wdm
#
#
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="zh_CN.UTF-8"
                                                                                                          
## Type:        string
## Default:     ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL=""

## Type:        string
## Default:     ""
#
# This defines the locale in which messages of programs and
# libraries with i18n-support should appear if a translated
# message catalog for the library or the program is installed.
# This also provides localized yes/no answers.
#
RC_LC_MESSAGES=""

## Type:        string
## Default:     ""
#
# This defines the locale for character handling and classification.
# The libc uses this value in language dependent function calls, such
# as e.g. uppercase/lowercase mapping of foreign characters.
#
RC_LC_CTYPE=""

## Type:        string
## Default:     ""
#
# This defines the locale for sorting strings and characters.
# It is used by the libc to obtain the alphabetical order of characters
# (e.g. for string comparisons).
#
RC_LC_COLLATE=""

## Type:        string
## Default:     ""
#
# This defines the locale for date and time output formats.
# i.e.: 06/09/1999 vs. 09.06.1999
#
RC_LC_TIME=""

## Type:        string
## Default:     ""
#
# This defines the locale for formatting and reading numbers.
# i.e.: 1,234.56 vs. 1.234,56
#
RC_LC_NUMERIC=""

## Type:        string
## Default:     ""
#
# This defines the locale for formatting and reading money values.
#
RC_LC_MONETARY=""

## Type:        string
## Default:     ""
#
# This defines the locale for format of paper.
#
RC_LC_PAPER=""

## Type:        string(ctype)
## Default:     ctype
#
# This defines if the user "root" should use the locale settings
# which are defined here.
# Value "ctype" means that root uses just LC_CTYPE. 
# Value "yes" means that root uses the full settings.. 
#
ROOT_USES_LANG="ctype"

## Type:        yesno
## Default:     no
#
# Workaround for missing forward of LANG and LC variables
# of e.g. ssh login connections.
#
AUTO_DETECT_UTF8="no"

## Type:        string
## Default:     ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="zh_CN,en_US"

是这样吧? 我打
cat /etc/sysconfig/language
出来的。

如果是 那个 mn_CN UTF8 要修改,请问应该修改什么文件?

这 Yast 设置里面 的这一项吗?

已经照你说的修改了,liboffice 也中文菜单了。输入法能 Ctrl+ 空格 打开,也能正常打拼音,最后 按 空格选字,字出不来。

火狐 gedit 里面可以正常使用,就 liboffice 里面不行。

好奇怪,/etc/sysconfig/language 里面的 locale 是对的。

echo $LANG

的结果呢?

还有,你用的 Google 拼音?那个早就不更新了,用 sunpinyin 看看候选词能不能上屏。

打 echo 显示出来还是

____@linux-m44i:~> echo $LANG
mn_CN.UTF-8
____@linux-m44i:~>

我好像用不了 你说的 sunpinyin ,右下角 fcitx-configtool 进去 以后找不到这个 sunpinyin ,
要选那个 中国的键盘布局 才有 sunpinyin。


还有 这个 sunpinyin 在我机器上好像有问题,按 crtl + 空格 出不来。

我猜想应该不是 googlepinyin 的问题,我换了 上面图中的 wubi shuangpin 等等,还是没用,liboffcie 里面能选字,就是字出不来。

算了吧,有时间我 重装下,感谢提供解决问题的思路。

系统没崩溃干嘛要重装…

从我的 iPhone 发送,使用 Tapatalk

你说那些都有可能是 bug,发现了不修就永远在

从我的 iPhone 发送,使用 Tapatalk

会不会是因为 fcitx-qt5 之类的软件包缺少的原因?以前使用为知笔记的时候也有这种的情况,中文输入法多试几个。你用的是 gnome 桌面,可以尝试安装一下 fcitx-qt4/fcitx-qt5/fcitx-gtk2/fcitx-gtk2,然后重启 fcitx 再试一下!!

我也遇到相似的问题了,可以粘贴中文,但是无法通过输入法键入中文
linux-idgc:~> echo $LANG
mn_CN.UTF-8

@linux-idgc:~> cat /etc/sysconfig/language

Path: System/Environment/Language

Type: string(ibus,fcitx,gcin,scim,scim-bridge,uim,kinput2,kinput2-canna,kinput2-wnn,nabi,wnn,atokx,xcin,none)

Default: “”

A default input method to be used in X11 can be selected here.

If this variable is set and a script with the same name

as the value of this variable exists in the directory /etc/X11/xim.d/

this script is sourced when X11 is started to start an input method.

The special value “none” (/etc/X11/xim.d/none) means:

Do not use any input method at all.

For more details see the comments at the top of /etc/X11/xim.

INPUT_METHOD=“fcitx”

Path: System/Environment/Language

Description:

Type: string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8-R,ru_RU.UTF-8,sk_SK.ISO-8859-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-8)

Default: “”

Config: OpenOffice.org,groff,ispell,kde,kdm,profiles,susehelp,susewm,tetex,wdm

Local users will get RC_LANG as their default language, i.e. the

environment variable $LANG . $LANG is the default of all $LC_*-variables,

as long as $LC_ALL is not set, which overrides all $LC_-variables.

Root uses this variable only if ROOT_USES_LANG is set to “yes”.

RC_LANG=“zh_CN.UTF-8”

Type: string

Default: “”

This variable will override all LC-variables!!

Again, ROOT_USES_LANG must be set to “yes”, if an effect on the superuser

account is desired.

RC_LC_ALL=""

Type: string

Default: “”

This defines the locale in which messages of programs and

libraries with i18n-support should appear if a translated

message catalog for the library or the program is installed.

This also provides localized yes/no answers.

RC_LC_MESSAGES=""

Type: string

Default: “”

This defines the locale for character handling and classification.

The libc uses this value in language dependent function calls, such

as e.g. uppercase/lowercase mapping of foreign characters.

RC_LC_CTYPE=""

Type: string

Default: “”

This defines the locale for sorting strings and characters.

It is used by the libc to obtain the alphabetical order of characters

(e.g. for string comparisons).

RC_LC_COLLATE=""

Type: string

Default: “”

This defines the locale for date and time output formats.

i.e.: 06/09/1999 vs. 09.06.1999

RC_LC_TIME=""

Type: string

Default: “”

This defines the locale for formatting and reading numbers.

i.e.: 1,234.56 vs. 1.234,56

RC_LC_NUMERIC=""

Type: string

Default: “”

This defines the locale for formatting and reading money values.

RC_LC_MONETARY=""

Type: string

Default: “”

This defines the locale for format of paper.

RC_LC_PAPER=""

Type: string(ctype)

Default: ctype

This defines if the user “root” should use the locale settings

which are defined here.

Value “ctype” means that root uses just LC_CTYPE.

Value “yes” means that root uses the full settings…

ROOT_USES_LANG=“ctype”

Type: yesno

Default: no

Workaround for missing forward of LANG and LC variables

of e.g. ssh login connections.

AUTO_DETECT_UTF8=“no”

Type: string

Default: “”

List of installed language supports, use by YaST2

INSTALLED_LANGUAGES=“zh_CN”

@linux-idgc:~> locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=mn_CN.UTF-8
LC_CTYPE="mn_CN.UTF-8"
LC_NUMERIC="mn_CN.UTF-8"
LC_TIME="mn_CN.UTF-8"
LC_COLLATE="mn_CN.UTF-8"
LC_MONETARY="mn_CN.UTF-8"
LC_MESSAGES="mn_CN.UTF-8"
LC_PAPER="mn_CN.UTF-8"
LC_NAME="mn_CN.UTF-8"
LC_ADDRESS="mn_CN.UTF-8"
LC_TELEPHONE="mn_CN.UTF-8"
LC_MEASUREMENT="mn_CN.UTF-8"
LC_IDENTIFICATION="mn_CN.UTF-8"
LC_ALL=

如何修改呢?