Jump to content
funtoo forums
  • 0
Sandro

[Funtoo stable 64] Troubles with "locale"

Question

Hi to All.

I have installed a 2nd Funtoo in another partition of my PC but with Gnome, xfce4 ^ fluxbox.

I am not able to use "It" keyboard layout with Gnome.

I have troubles with locale and i don-t know how to configure correctly.

 

My situation

ci74771ht ~ # eselect locale list
/etc/env.d/02locale: riga 4: attenzione: setlocale: LC_NUMERIC: impossibile cambiare la localizzazione (it_IT.UTF-8LC_TIME=it_IT.UTF-8LC_MONETARY=it_IT.UTF-8LC_PAPER=it_IT.UTF-8LC_MEASUREMENT=it_IT.UTF-8)
/etc/env.d/02locale: riga 4: attenzione: setlocale: LC_NUMERIC: impossibile cambiare la localizzazione (it_IT.UTF-8LC_TIME=it_IT.UTF-8LC_MONETARY=it_IT.UTF-8LC_PAPER=it_IT.UTF-8LC_MEASUREMENT=it_IT.UTF-8)
Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   it_IT.utf8 *
  [ ]   (free form)
ci74771ht ~ # cat /etc/X11/xorg.conf
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib64/xorg/modules"
    FontPath     "/usr/share/fonts/misc/"
    FontPath     "/usr/share/fonts/TTF/"
    FontPath     "/usr/share/fonts/OTF/"
    FontPath     "/usr/share/fonts/Type1/"
    FontPath     "/usr/share/fonts/100dpi/"
    FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section    "InputClass"
    Identifier  "Keyboard0"
    Option    "XkbLayout"    "it"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "nvidia"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection
 

ci74771ht ~ # epro show

=== Enabled Profiles: ===

        arch: x86-64bit
       build: stable
     subarch: native_64
      flavor: desktop
     mix-ins: xfce
     mix-ins: gnome
     mix-ins: mediadevice-video-pro
     mix-ins: mediadevice-audio-pro
     mix-ins: media-pro
     mix-ins: mediaformat-audio-extra
     mix-ins: no-systemd
     mix-ins: mediaformat-video-extra
     mix-ins: mediaformat-gfx-extra
     mix-ins: gnome-3.16-fixups


=== All inherited flavors from desktop flavor: ===

                     workstation (from desktop flavor)
                            core (from workstation flavor)
                         minimal (from core flavor)

=== All inherited mix-ins from desktop flavor: ===

                               X (from workstation flavor)
                           audio (from workstation flavor)
                             dvd (from workstation flavor)
                           media (from workstation flavor)
      mediadevice-audio-consumer (from media mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)
      mediadevice-video-consumer (from media mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)
        mediaformat-audio-common (from media mix-in)
          mediaformat-gfx-common (from media mix-in)
        mediaformat-video-common (from media mix-in)
                  console-extras (from workstation flavor)
                           print (from desktop flavor)

=== All inherited mix-ins from mediadevice-video-pro mix-in: ===

      mediadevice-video-consumer (from mediadevice-video-pro mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)

=== All inherited mix-ins from mediadevice-audio-pro mix-in: ===

      mediadevice-audio-consumer (from mediadevice-audio-pro mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)

=== All inherited mix-ins from media-pro mix-in: ===

                           media (from media-pro mix-in)
      mediadevice-audio-consumer (from media mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)
      mediadevice-video-consumer (from media mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)
        mediaformat-audio-common (from media mix-in)
          mediaformat-gfx-common (from media mix-in)
        mediaformat-video-common (from media mix-in)
           mediadevice-audio-pro (from media-pro mix-in)
      mediadevice-audio-consumer (from mediadevice-audio-pro mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)
           mediadevice-video-pro (from media-pro mix-in)
      mediadevice-video-consumer (from mediadevice-video-pro mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)

=== All inherited mix-ins from mediaformat-audio-extra mix-in: ===

        mediaformat-audio-common (from mediaformat-audio-extra mix-in)

=== All inherited mix-ins from mediaformat-video-extra mix-in: ===

        mediaformat-video-common (from mediaformat-video-extra mix-in)

=== All inherited mix-ins from mediaformat-gfx-extra mix-in: ===

          mediaformat-gfx-common (from mediaformat-gfx-extra mix-in)

Now i-m writing on a it keyboard but using en_US layout

 

On my "Funtoo with xfce4 + KDE4" all runs perfectly with the same configuration.

 

What can I do to solve ?

 

Thanx to All.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Excfuse me for double post.

 

Now i've made a new little step about this trouble.

 

I've recompiled glibc with "empty locale.gen file".

 

So, now, in terminal and other softwares, the italian layout runs fine :P

 

But i've warnings .... and i don't know which may be the best choice from:

ci74771ht ~ # eselect locale list|grep it
/etc/env.d/02locale: riga 5: attenzione: setlocale: LC_TIME: impossibile cambiare la localizzazione (CLC_MONETARY=CLC_PAPER=CLC_MEASUREMENT=C)
/etc/env.d/02locale: riga 5: attenzione: setlocale: LC_TIME: impossibile cambiare la localizzazione (CLC_MONETARY=CLC_PAPER=CLC_MEASUREMENT=C)
  [441] it_CH
  [442] it_CH.iso88591
  [443] it_CH.utf8
  [444] it_IT
  [445] it_IT.iso88591
  [446] it_IT.iso885915@euro
  [447] it_IT.utf8 *
  [448] it_IT@euro
  [449] italian

And i've this output for example:

ci74771ht ~ # emerge lshw
setlocale: unsupported locale setting
setlocale: unsupported locale setting
Calculating dependencies \

How To Solve ?

 

 

Thanks for any suggestion / explanation :)

Share this post


Link to post
Share on other sites
  • 0

There isn't the file ....

 

In my "Official Funtoo KDE + xfce4" it is ok:

ci74771ht ~ # cat /etc/env.d/02locale

# Configuration file for eselect
# This file has been automatically generated.
LANG="it_IT.utf8"

________________________

 

 

In the newer installation with xfce + Gnome, the file doesn't exist:

# ls -lh /mnt/funtoo/etc/env.d/
total 172K
-rw-r--r-- 1 root root   170 giu 15 00:23 000opengl
-rw-r--r-- 1 root root   273 apr  9  2014 00basic
-rw-r--r-- 1 root root    37 giu 15 01:08 00glibc
-rw-r--r-- 1 root root    18 mag  7 04:00 00manpager
-rw-r--r-- 1 root root    14 giu 15 03:30 01cvs
-rw-r--r-- 1 root root   163 giu 15 01:40 02locale
-rw-r--r-- 1 root root   178 giu 15 00:23 03opencl
-rw-r--r-- 1 root root   231 mag  7 03:21 04gcc-x86_64-pc-linux-gnu
-rw-r--r-- 1 root root   108 mag  7 04:02 04multilib
-rw-r--r-- 1 root root   144 mag  7 02:51 05binutils
-rw-r--r-- 1 root root    37 mag  7 04:08 09sandbox
-rw-r--r-- 1 root root    26 giu 13 05:35 20ant
-rw-r--r-- 1 root root    52 giu 13 03:13 20java-config
-rw-r--r-- 1 root root    46 giu 14 15:07 30gnupg
-rw-r--r-- 1 root root    81 giu 14 14:47 30xdg-data-local
-rw-r--r-- 1 root root    44 giu 13 03:08 37fontconfig
-rw-r--r-- 1 root root    55 giu 13 03:13 43kdepaths
-rw-r--r-- 1 root root    27 giu 13 05:13 44qt4-graphicssystem
-rw-r--r-- 1 root root    24 giu 13 04:58 44qt4-i686-pc-linux-gnu
-rw-r--r-- 1 root root    24 giu 13 04:58 44qt4-x86_64-pc-linux-gnu
-rw-r--r-- 1 root root    59 giu 14 22:13 50gconf
-rw-r--r-- 1 root root    39 giu 15 03:36 50guile
-rw-r--r-- 1 root root    36 giu 13 03:19 50ncurses
-rw-r--r-- 1 root root    59 giu 14 14:46 51dconf
-rw-r--r-- 1 root root    30 giu 13 03:13 60ladspa
-rw-r--r-- 1 root root    63 giu 14 13:51 65resid
-rw-r--r-- 1 root root    47 mag  7 04:04 70less
-rw-r--r-- 1 root root   372 giu 15 02:28 80cgc-opt
-rw-r--r-- 1 root root    17 giu 15 03:29 80mercurial
-rw-r----- 1 root games  185 giu 14 20:46 90games
-rw-r--r-- 1 root root    54 giu 13 05:35 90libbluray
-rw-r--r-- 1 root root    54 giu 14 14:47 90xdg-data-base
-rw-r--r-- 1 root root    48 mag  7 04:06 98ca-certificates
-rw-r--r-- 1 root root    37 giu 14 23:38 99evolution
-rw-r--r-- 1 root root    42 feb 25  2011 99gentoolkit-env
-rw-r--r-- 1 root root    33 giu 15 02:11 99skype
-rw-r--r-- 1 root root    31 giu 14 22:34 99xdg-gdm
drwxr-xr-x 2 root root  4,0K mag  7 04:24 binutils
drwxr-xr-x 3 root root  4,0K giu 13 03:37 blas
drwxr-xr-x 3 root root  4,0K giu 13 03:43 cblas
drwxr-xr-x 2 root root  4,0K giu 13 04:16 gcc
drwxr-xr-x 3 root root  4,0K giu 13 03:43 lapack
drwxr-xr-x 2 root root  4,0K mag  7 04:03 python

May be related to the stage3 that i've used ?

 

________________________________________________________

 

Adding the 02locale in /etc/env.d , now it seems all ok. Thanx Great Oleg :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...