Results 1 to 3 of 3

Thread: Help about locale problem

  1. #1
    Just burned his ISO
    Join Date
    Oct 2008
    Posts
    13

    Default Help about locale problem

    Hi All there,

    I would be very appreciate if someone can help me to add locale in BT-3.

    Here is my current condition of locale -a command, I got errors and I don't have any other locale other than C and POSIX:

    Code:
    #locale -a
    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_COLLATE to default locale: No such file or directory
    C
    POSIX

    Then I need to add en_US.UTF-8 locale and also zh_CN.UTF-8 locale. But I got these errors:

    Code:
    # localedef -v -c -i en_US -f UTF-8 en_US.UTF-8
    /usr/share/i18n/locales/en_US:7: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:8: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:9: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:11: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:14: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:15: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:16: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:17: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:19: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:20: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:21: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:22: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:23: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:24: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:25: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:26: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:27: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:28: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:29: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:34: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_GB:50: non-symbolic character value should not be used
    /usr/share/i18n/locales/i18n:1107: non-symbolic character value should not be used
    /usr/share/i18n/locales/i18n:1313: non-symbolic character value should not be used
    /usr/share/i18n/locales/i18n:1345: non-symbolic character value should not be used
    /usr/share/i18n/locales/i18n:1373: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_GB:53: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_GB:59: non-symbolic character value should not be used
    /usr/share/i18n/locales/en_US:40: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:10: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:11: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:12: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:13: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:14: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:15: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:16: non-symbolic character value should not be used
    /usr/share/i18n/locales/translit_neutral:17: non-symbolic character value should not be used
    LC_NAME: field `name_gen' not defined
    LC_IDENTIFICATION: field `audience' not defined
    LC_IDENTIFICATION: field `application' not defined
    LC_IDENTIFICATION: field `abbreviation' not defined
    LC_IDENTIFICATION: no identification for category `LC_MEASUREMENT'
    LC_CTYPE: table for class "upper": 1564 bytes
    LC_CTYPE: table for class "lower": 1564 bytes
    LC_CTYPE: table for class "alpha": 3616 bytes
    LC_CTYPE: table for class "digit": 600 bytes
    LC_CTYPE: table for class "xdigit": 600 bytes
    LC_CTYPE: table for class "space": 792 bytes
    LC_CTYPE: table for class "print": 5144 bytes
    LC_CTYPE: table for class "graph": 5144 bytes
    LC_CTYPE: table for class "blank": 792 bytes
    LC_CTYPE: table for class "cntrl": 664 bytes
    LC_CTYPE: table for class "punct": 4120 bytes
    LC_CTYPE: table for class "alnum": 3616 bytes
    LC_CTYPE: table for class "combining": 2076 bytes
    LC_CTYPE: table for class "combining_level3": 2076 bytes
    LC_CTYPE: table for map "toupper": 14364 bytes
    LC_CTYPE: table for map "tolower": 12828 bytes
    LC_CTYPE: table for map "totitle": 14364 bytes
    LC_CTYPE: table for width: 22744 bytes
    cannot create temporary file: No such file or directory
    Thank you for your help folks !!



    Best Regards

  2. #2
    Just burned his ISO
    Join Date
    Oct 2008
    Posts
    13

    Default

    Ok, now I fixed this by myself by install this pacakge :-)

    Code:
    slapt-get --install glibc-i18n-2.3.5-noarch-6_slack10.2
    After installed this, I have everything now when I type "locale -a", as in the following:

    Code:
    # locale -a
    C
    POSIX
    aa_DJ
    aa_ER
    aa_ER@saaho
    aa_ET
    af_ZA
    am_ET
    an_ES
    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_SY
    ar_SY.utf8
    ar_TN
    ar_TN.utf8
    ar_YE
    ar_YE.utf8
    az_AZ.utf8
    be_BY
    be_BY.utf8
    bg_BG
    bg_BG.utf8
    bn_BD
    bn_IN
    br_FR
    br_FR@euro
    bs_BA
    byn_ER
    ca_ES
    ca_ES.utf8
    ca_ES@euro
    cs_CZ
    cs_CZ.utf8
    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
    el_GR
    el_GR.utf8
    en_AU
    en_AU.utf8
    en_BW
    en_BW.utf8
    en_CA
    en_CA.utf8
    en_DK
    en_DK.utf8
    en_GB
    en_GB.utf8
    en_HK
    en_HK.utf8
    en_IE
    en_IE.utf8
    en_IE@euro
    en_IN
    en_NZ
    en_NZ.utf8
    en_PH
    en_PH.utf8
    en_SG
    en_SG.utf8
    en_US
    en_US.utf8
    en_ZA
    en_ZA.utf8
    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_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
    fi_FI
    fi_FI.utf8
    fi_FI@euro
    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
    ga_IE
    ga_IE.utf8
    ga_IE@euro
    gd_GB
    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
    he_IL
    he_IL.utf8
    hi_IN
    hr_HR
    hr_HR.utf8
    hu_HU
    hu_HU.utf8
    id_ID
    id_ID.utf8
    is_IS
    is_IS.utf8
    it_CH
    it_CH.utf8
    it_IT
    it_IT.utf8
    it_IT@euro
    iw_IL
    iw_IL.utf8
    ja_JP.eucjp
    ja_JP.utf8
    ka_GE
    kk_KZ
    kl_GL
    kl_GL.utf8
    kn_IN
    ko_KR.euckr
    ko_KR.utf8
    kw_GB
    kw_GB.utf8
    lg_UG
    lo_LA
    lt_LT
    lt_LT.utf8
    lv_LV
    lv_LV.utf8
    mi_NZ
    mk_MK
    mk_MK.utf8
    ml_IN
    mn_MN
    mr_IN
    ms_MY
    ms_MY.utf8
    mt_MT
    mt_MT.utf8
    nb_NO
    nb_NO.utf8
    ne_NP
    nl_BE
    nl_BE.utf8
    nl_BE@euro
    nl_NL
    nl_NL.utf8
    nl_NL@euro
    nn_NO
    nn_NO.utf8
    oc_FR
    om_ET
    om_KE
    pa_IN
    pl_PL
    pl_PL.utf8
    pt_BR
    pt_BR.utf8
    pt_PT
    pt_PT.utf8
    pt_PT@euro
    ro_RO
    ro_RO.utf8
    ru_RU
    ru_RU.cp1251
    ru_RU.koi8r
    ru_RU.utf8
    ru_UA
    ru_UA.utf8
    se_NO
    sid_ET
    sk_SK
    sk_SK.utf8
    sl_SI
    sl_SI.utf8
    so_DJ
    so_ET
    so_KE
    so_SO
    sq_AL
    sq_AL.utf8
    st_ZA
    st_ZA.utf8
    sv_FI
    sv_FI.utf8
    sv_FI@euro
    sv_SE
    sv_SE.utf8
    ta_IN
    te_IN
    tg_TJ
    th_TH
    th_TH.utf8
    ti_ER
    ti_ET
    tig_ER
    tl_PH
    tr_TR
    tr_TR.utf8
    tt_RU.utf8
    uk_UA
    uk_UA.utf8
    ur_PK
    uz_UZ
    uz_UZ@cyrillic
    vi_VN
    vi_VN.tcvn
    wa_BE
    wa_BE.utf8
    wa_BE@euro
    xh_ZA
    xh_ZA.utf8
    yi_US
    zh_CN
    zh_CN.gb18030
    zh_CN.gbk
    zh_CN.utf8
    zh_HK
    zh_HK.utf8
    zh_SG
    zh_SG.gbk
    zh_TW
    zh_TW.euctw
    zh_TW.utf8
    zu_ZA
    zu_ZA.utf8
    But now I have another error when I set LC_ALL="en_US" or LC_ALL="en_US.utf8" or anything, except C or POSIX.

    Here is using "C", you can see nothing complain here:
    Code:
    # locale
    LANG=en_US
    LC_CTYPE="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_COLLATE="C"
    LC_MONETARY="C"
    LC_MESSAGES="C"
    LC_PAPER="C"
    LC_NAME="C"
    LC_ADDRESS="C"
    LC_TELEPHONE="C"
    LC_MEASUREMENT="C"
    LC_IDENTIFICATION="C"
    LC_ALL=C
    But when I set LC_ALL="en_US.utf8", I got the following error:

    Code:
    # locale
    locale: Cannot set LC_ALL to default locale: No such file or directory
    LANG=en_US
    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=en_US.utf8
    The error is "locale: Cannot set LC_ALL to default locale: No such file or directory", I wonder how to fix this.


    Thanks for anyone tried to help me in advance.



    Best Regards

  3. #3
    Just burned his ISO
    Join Date
    Oct 2008
    Posts
    13

    Default

    Ok, seems nobody answer, I answer myself because I solved it myself

    To fix this:
    Code:
    # locale
    locale: Cannot set LC_ALL to default locale: No such file or directory
    Just do:
    Code:
    localedef -v -c -i en_US -f UTF-8 en_US.utf8
    Then finally you can do
    Code:
    # export LC_ALL="en_US.utf8"
    With no problem at all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •