International locale error

  • Open
  • quality assurance status badge
Details
2 participants
  • Tobias Geerinckx-Rice
  • quiliro
Owner
unassigned
Submitted by
quiliro
Severity
normal
Q
Q
quiliro wrote on 22 Sep 2019 15:06
(name . bug-guix)(address . bug-guix@gnu.org)
11e29a31a636d87271e851221ab4c642.squirrel@sm.riseup.net
Hello Guix.

I have had a problem on Guix System for about a month since a reconfigure
and have tried several 'sudo guix system reconfigure config.scm'. But
still cannot solve it. I have tried to include all symptoms in order to
make this report useful.

My user login for Gnome appears as 'Quiliro Ord???ez' instead of Quiliro
Ordóñez.

Only my user quiliro is available for Gnome as Quiliro Ord????ez until I
login on tty1 terminal as user analucia. Then that user appears as Ana
Luc??a Barahona on Gnome.

When I am logged in as user in Gnome and I change to tty1 (with C-M-F1),
if I go back to tty7, I get a new Gnome login. The Gnome session I was on
is on tty8.

My config.scm has been tested with (locale "es_EC.UTF-8") and with (locale
"es_ES.utf8"). I have errors with both. With es_EC.UTF-8, I get English
language displayed, not Spanish on web pages. With es_ES.utf8, I get
Spanish displayed, but still have the other international character
problems.

I cannot open gnome-session. When I open it via Xfce-terminal it replies
with error:
quiliro@GSD3 ~$ gnome-terminal
# Locale not supported by C library.
# Using the fallback 'C' locale.
# Error constructing proxy for
org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling
StartServiceByName for org.gnome.Terminal:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process
org.gnome.Terminal exited with status 9
quiliro@GSD3 ~$

I cannot type characters such as ? on C-M-F1 as well as on Xfce-terminal
and Emacs in Gnome. But I can type characters such as ó and ñ. I don't
have that problem on Icecat.

My current locale is es_EC.UTF-8:
quiliro@GSD3 ~$ 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=es_EC.UTF-8
LC_CTYPE="es_EC.UTF-8"
LC_NUMERIC="es_EC.UTF-8"
LC_TIME="es_EC.UTF-8"
LC_COLLATE="es_EC.UTF-8"
LC_MONETARY="es_EC.UTF-8"
LC_MESSAGES="es_EC.UTF-8"
LC_PAPER="es_EC.UTF-8"
LC_NAME="es_EC.UTF-8"
LC_ADDRESS="es_EC.UTF-8"
LC_TELEPHONE="es_EC.UTF-8"
LC_MEASUREMENT="es_EC.UTF-8"
LC_IDENTIFICATION="es_EC.UTF-8"
LC_ALL=
quiliro@GSD3 ~$

My complete system reconfigure file (config.scm) is:
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop xorg)
(use-package-modules certs gnome)

(operating-system
(host-name "GSD3")
(timezone "America/Guayaquil")
;; (locale "es_EC.UTF-8")
(locale "es_ES.utf8")
(keyboard-layout (keyboard-layout "es" "dvorak")) ;for the console

;; Use the BIOS variant of GRUB
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")
(keyboard-layout keyboard-layout))) ;for GRUB

(file-systems (append (list
(file-system
(device (uuid "<HIDDEN>"))
(mount-point "/")
(type "ext4"))
(file-system
(device (uuid "<HIDDEN>"))
(mount-point "/home/quiliro/respaldos")
(type "ext4")))
%base-file-systems))

(swap-devices '("/dev/sda1"))

(users
;; (cons
(cons*
(user-account
(name "quiliro")
(comment "Quiliro Ordóñez")
(group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/quiliro"))
(user-account
(name "analucia")
(comment "Ana Lucía Barahona")
(group "users")
(supplementary-groups '("netdev" "audio" "video"))
(home-directory "/home/analucia"))
(user-account
(name "invitado")
(comment "Usuario invitado")
(group "users")
(supplementary-groups '("netdev" "audio" "video"))
(home-directory "/home/invitado"))
%base-user-accounts))

;; This is where we specify system-wide packages.
(packages (append (list
nss-certs ;for HTTPS access
gvfs) ;for user mounts
%base-packages))

;; Add GNOME and/or Xfce---we can choose at the log-in
;; screen with F1. Use the "desktop" services, which
;; include the X11 log-in service, networking with
;; NetworkManager, and more.
(services (append (list
(service gnome-desktop-service-type)
(service xfce-desktop-service-type)
(set-xorg-configuration
(xorg-configuration ;for Xorg
(keyboard-layout keyboard-layout))))
%desktop-services))

;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))

The command I run as regular user for reconfiguration is:
guix pull
sudo guix system reconfigure config.scm

I can provide more information as needed to solve this bug for
Iberoamerican users.

Happy hacking!
Quiliro
Q
Q
quiliro wrote on 22 Sep 2019 17:12
(name . bug-guix)(address . bug-guix@gnu.org)
12e1f088081853cbac35ebc14d788f89.squirrel@sm.riseup.net
Every time I run the guix command, I get an error about locales, even
though i am running Guix System

quiliro@GSD3 ~$ guix upgrade
guile: warning: failed to install locale
hint: Consider installing the `glibc-utf8-locales' or `glibc-locales'
package and
defining `GUIX_LOCPATH', along these lines:

guix package -i glibc-utf8-locales
export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"

See the "Application Setup" section in the manual, for more info.

substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
[...]
Q
Q
quiliro wrote on 23 Sep 2019 04:54
(address . 37479@debbugs.gnu.org)(name . Bengt Richter)(address . bokr@bokr.com)
365067e95a81f7f52f0640d30c757978.squirrel@sm.riseup.net
Thank you for your reply, Bengt. I received this email outside of the
mailing list. So I have forwarded it. Below inline I comment.

On Sun, September 22, 2019 3:15 pm, Bengt Richter wrote:
Toggle quote (37 lines)
> On +2019-09-22 14:44:57 +0000, quiliro@riseup.net wrote:
>> Hello Guix.
>>
>> I have had a problem on Guix System for about a month since a
>> reconfigure
>> and have tried several 'sudo guix system reconfigure config.scm'. But
>> still cannot solve it. I have tried to include all symptoms in order to
>> make this report useful.
>>
>> My user login for Gnome appears as 'Quiliro Ord???ez' instead of Quiliro
>> Ordóñez.
>>
>
> [...]
>
>> I cannot type characters such as ? on C-M-F1 as well as on Xfce-terminal
>> and Emacs in Gnome. But I can type characters such as ó and ñ. I don't
>> have that problem on Icecat.
>>
>> My current locale is es_EC.UTF-8:
>> quiliro@GSD3 ~$ 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
>
> I believe locale should not complain as in the above 3 lines.
> When it stops complaining, I suspect many of the other complaints will
> disappear.
>
> Unfortuantely, I did not make good notes when my locale command produced
> the same errors,
> so take my advice with a grain of salt ;-)
>
> You might want to try running locale-gen as root -- i.e. sudo locale-gen
> See man locale-gen

It is not available.

Toggle quote (11 lines)
> But first, what LANG=... does sudo locale produce for you?
> I would guess it needs to be LANG=es_EC.UTF-8 for you.
>
> If it doesn't show that LANG=, probably locale-gen will need to be told.
> Perhaps something like this would work to invoke locale-gen:
>
> sudo bash
> LANG=es_EC.UTF-8 locale-gen
> # ... locale-gen take a little while to compile stuff ...
> # exit with Ctl-d back to your user cli

quiliro@GSD3 ~/Descargas/elisp$ sudo bash
root@GSD3 /home/quiliro/Descargas/elisp# 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=es_EC.UTF-8
LC_CTYPE="es_EC.UTF-8"
LC_NUMERIC="es_EC.UTF-8"
LC_TIME="es_EC.UTF-8"
LC_COLLATE="es_EC.UTF-8"
LC_MONETARY="es_EC.UTF-8"
LC_MESSAGES="es_EC.UTF-8"
LC_PAPER="es_EC.UTF-8"
LC_NAME="es_EC.UTF-8"
LC_ADDRESS="es_EC.UTF-8"
LC_TELEPHONE="es_EC.UTF-8"
LC_MEASUREMENT="es_EC.UTF-8"
LC_IDENTIFICATION="es_EC.UTF-8"
LC_ALL=
root@GSD3 /home/quiliro/Descargas/elisp# LANG=es_EC.UTF-8 locale-gen
bash: locale-gen: command not found
root@GSD3 /home/quiliro/Descargas/elisp# exit
quiliro@GSD3 ~/Descargas/elisp$ sudo locale-gen
sudo: locale-gen: command not found

Toggle quote (22 lines)
>> LANG=es_EC.UTF-8
>> LC_CTYPE="es_EC.UTF-8"
>> LC_NUMERIC="es_EC.UTF-8"
>> LC_TIME="es_EC.UTF-8"
>> LC_COLLATE="es_EC.UTF-8"
>> LC_MONETARY="es_EC.UTF-8"
>> LC_MESSAGES="es_EC.UTF-8"
>> LC_PAPER="es_EC.UTF-8"
>> LC_NAME="es_EC.UTF-8"
>> LC_ADDRESS="es_EC.UTF-8"
>> LC_TELEPHONE="es_EC.UTF-8"
>> LC_MEASUREMENT="es_EC.UTF-8"
>> LC_IDENTIFICATION="es_EC.UTF-8"
>> LC_ALL=
>> quiliro@GSD3 ~$
>>
>
> Good luck :)
>
> Regards,
> Bengt Richter

Thank you for your help.
Quiliro
T
T
Tobias Geerinckx-Rice wrote on 23 Sep 2019 07:08
(name . Quiliro Ordóñez)(address . quiliro@riseup.net)(address . 37479@debbugs.gnu.org)
87wodz1tx8.fsf@nckx
Quiliro,

You say that:

quiliro@riseup.net ???
Toggle quote (9 lines)
> My current locale is es_EC.UTF-8:
> quiliro@GSD3 ~$ 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=es_EC.UTF-8
^^^^^^^^^^^

But this doesn't match:

Toggle quote (10 lines)
> My complete system reconfigure file (config.scm) is:
> (use-modules (gnu) (gnu system nss))
> (use-service-modules desktop xorg)
> (use-package-modules certs gnome)
>
> (operating-system
> (host-name "GSD3")
> (timezone "America/Guayaquil")
> ;; (locale "es_EC.UTF-8")
> (locale "es_ES.utf8")
^^^^^^^^^^

Strange, no? Or is this to be expected in Gnome?

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl2IU0MACgkQ2Imw8BjF
STz7Ww/+IyxyHOYw4mA1un93Zu4Flhfr14IWV4DZ+94AMvjs7RF5WXX/MN6h0tlr
gLCekKG4OdYaog7yh7y7FgviV7jz0ifACxqfcfiJUUBvySzLJXORFwnX6c73ajf/
c9XnGnBZObokP1jY1csPq19hwFxXNzoqw419UckZ03ZOZqDcI5LYj3tmcV92vUFs
646n763EFMyOKVrh2u2rqYI5PSd+OgtYteO+z67RhlgNefh/lKz/oB6cbkDmRw53
skVQYapWb2DFfyvHWW4+jzIuI9ImDYAXHGCCPNLg199e5yP/6L6VIoFiiH2dUylw
RwBzf5s3cgsWjBYw9ut5AVrHRUhg3hC2+eLvPMOZfQF1JlwM2dIzIDV4ktO27A33
PZdUFqlSN6fZhNU43u8AKrMdo6Ig4eSMzzLcjEYoaUG4ezNbYr/S65yZG+QEo8eY
LCxN2GaiVwciprozgvLs39Sbk8n9oNodLJNakFXKojEgzsxBGw8Sp/dMjDobrrUo
TjTWk+PwEAUQ55m4MA8ZBinnsbMS/5QaCmEtqo14Rrw1Jbg3S7lVn5RoyA+WCJtj
guHUnbH3TM1TT9Py8Q6FHUBgkSmf42VClrgymKLkvNj8V4k8zmjy5T5MENh4Lviu
Hr5RPTYT0NTu6MwuJc6wQLeNtZdZpJ2/6KTUIDqu4Kkeux0NyoA=
=65vN
-----END PGP SIGNATURE-----

?