Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 796452

Summary: Esperanto locale works badly with unicode
Product: Gentoo Linux Reporter: Sergey 'L29Ah' Alirzaev <zl29ah>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED CANTFIX    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Sergey 'L29Ah' Alirzaev 2021-06-17 08:27:28 UTC
I've set LANG=eo.UTF-8 system-wide, now urxvt and xmonad refuse to input cyrillic, and tkabber produces garbage when i input things like "™" with XCompose. Wasn't the case with LANG=en_DK.UTF-8.

urxvt tells this when it's ran with eo, eo.UTF-8, en_DK, but not en_DK.UTF-8:
urxvt: the locale is not supported by Xlib, continuing without locale support.

Might be related to this, but removing these lines did nothing:
∞ grep ^eo /usr/share/X11/locale/locale.alias 
eo						eo_XX.ISO8859-3
eo_EO						eo_EO.ISO8859-3
eo_XX						eo_XX.ISO8859-3
eo:						eo_XX.ISO8859-3
eo_EO:						eo_EO.ISO8859-3
eo_XX:						eo_XX.ISO8859-3

Reproducible: Always
Comment 1 Marco Scardovi (scardracs) 2021-06-17 09:00:08 UTC
I suppose you are talking about version 1.01. Did you have that problem with version 1.0-r1 too?
Comment 2 Sergey 'L29Ah' Alirzaev 2021-06-17 09:05:23 UTC
(In reply to Marco Scardovi (scardracs) from comment #1)
> I suppose you are talking about version 1.01. Did you have that problem with
> version 1.0-r1 too?

I don't understand what versions you're talking about.
Comment 3 Ionen Wolkens gentoo-dev 2021-06-17 14:25:40 UTC
What line are you using to generate the locale in /etc/locale.gen? Could you also attach emerge --info? Is this a recent issue?

Also, you're talking of removing lines, anything else you may have changed? Perhaps it'd help to cleanly re-install glibc (emerge -1 sys-libs/glibc) or regenerate locales (locale-gen).

I can't seem to reproduce (LANG=eo.UTF-8 is fine), this may be suited for support venues unless can figure out what package is potentially causing this.
https://www.gentoo.org/support/
Comment 4 Sergey 'L29Ah' Alirzaev 2021-06-17 15:21:21 UTC
(In reply to Ionen Wolkens from comment #3)
> What line are you using to generate the locale in /etc/locale.gen?

All of them with no success:
eo UTF-8
eo_EO UTF-8
eo_EO.UTF-8 UTF-8
eo.UTF-8 UTF-8

> Could you also attach emerge --info?

ok

> Is this a recent issue?

This is my first time setting an esperanto locale.

> Also, you're talking of removing lines, anything else you may have changed?
> Perhaps it'd help to cleanly re-install glibc (emerge -1 sys-libs/glibc) or
> regenerate locales (locale-gen).

Nothing related to glibc; the file was also reverted. locale-gen was used each time /etc/locale.gen was touched ofc.

> I can't seem to reproduce (LANG=eo.UTF-8 is fine)

What does work for you?
Comment 5 Sergey 'L29Ah' Alirzaev 2021-06-17 15:21:34 UTC
Created attachment 716595 [details]
emerge --info
Comment 6 Ionen Wolkens gentoo-dev 2021-06-17 17:34:21 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #4)
> > I can't seem to reproduce (LANG=eo.UTF-8 is fine)
> 
> What does work for you?
I don't use/know xmonad/tkabber so I mostly looked at urxvt and other applications where it seemed to work fine (I can notably use cyrillic with LANG=eo.utf8 in various applications, gedit for example).

But my setup may have been misleading with urxvt, this seem related to XIM (doesn't happen with --disable-xim), but only when using LANG=eo.utf8, LANG=eo with "eo UTF-8" is fine. Perhaps it's a parsing issue given there's no country, i.e. eo_EO is invalid.
https://www.sourceware.org/bugzilla/show_bug.cgi?id=23857

For other applications, have you tried mixing locales? e.g. LC_CTYPE=en_DK.utf8 with LANG=eo.utf8

Either way, I don't think there's much Gentoo can do to improve the eo locale handling, sounds like upstream issues (not quite sure who to even assign this bug to, X libraries, glibc, xmonad, etc...)