luit gives "Warning: couldn't find charset data for locale XXXX; using ISO 8859-1."

Bug #280449 reported by johnpc
2
Affects Status Importance Assigned to Milestone
x11-utils (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: x11-utils

Release: ubuntu 8.04.01 (Hardy).
x11-utils version 7.3+1 from http://nl.archive.ubuntu.com hardy/main

When running "LANG=en_US luit ssh ancient-machine" or "LANG=en_US xterm -lc", luit issues a warning:
"Warning: couldn't find charset data for locale en_US; using ISO 8859-1." (in the xterm example, the warning will appear as the first line in the xterm).

This is because luit cannot find the correct locale.alias file. It looks for /usr/lib/X11/locale/locale.alias, but that file is not present (at least on hardy), it is in /usr/share/X11/locale/locale.alias.

Quick-fix solution:

  $ cd /usr/lib/X11
  $ sudo mkdir locale
  $ cd locale
  $ sudo ln -s /usr/share/X11/locale/locale.alias .

Now "luit" behaves properly, at least for latin1 or latin9 type of locales.

Better fix is likely to recompile luit with the correct paths (encodings.dir also has an incorrect path: another /usr/lib/X11 vs /usr/share/X11 mixup).

ProblemType: Bug
Architecture: amd64
Date: Thu Oct 9 00:16:54 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia ath_hal
Package: x11-utils 7.3+1
PackageArchitecture: amd64
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/username/bin:/usr/X11R6/bin
 LANG=nl_NL
SourcePackage: x11-utils
Uname: Linux 2.6.24-19-generic x86_64

Tags: apport-bug
Revision history for this message
johnpc (johnpc) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi johnpc,

Thanks for including the attached files. Could you also include your /var/log/Xorg.0.log?

Changed in x11-utils:
status: New → Incomplete
Revision history for this message
johnpc (johnpc) wrote : Re: [Bug 280449] Re: luit gives "Warning: couldn't find charset data for locale XXXX; using ISO 8859-1."

On Fri, Nov 07, 2008 at 08:55:55AM -0000, Bryce Harrington wrote:
> Hi johnpc,
>
> Thanks for including the attached files. Could you also include your /var/log/Xorg.0.log?

That is going to be a tad difficult, because I already upgraded to
Intrepid. You'll have to make do with my current (Intrepid) Xorg.0.log,
which I attached to this mail. Even my Xorg.0.log.old was from Intrepid
(not surprising, because I restarted X several times since upgrading).

However, the good news is: the bug is fixed in this release, "luit"
now has the proper path to locale.alias:

lsd:~ $ strings -a `which luit`|grep locale.alias
/usr/share/X11/locale/locale.alias
lsd:~ $ ls -l /usr/share/X11/locale/locale.alias
-rw-r--r-- 1 root root 80646 2008-10-08 16:58 /usr/share/X11/locale/locale.alias
(and luit no longer references encodings.dir, at least there's no
mention in the binary).

(And indeed, the error from luit is gone, even after removing the manual
quickfix I described in the bug report)

>
>
> ** Changed in: x11-utils (Ubuntu)
> Status: New => Incomplete
>
> --
> luit gives "Warning: couldn't find charset data for locale XXXX; using ISO 8859-1."
> https://bugs.launchpad.net/bugs/280449
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “x11-utils” source package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: x11-utils
>
> Release: ubuntu 8.04.01 (Hardy).
> x11-utils version 7.3+1 from http://nl.archive.ubuntu.com hardy/main
>
> When running "LANG=en_US luit ssh ancient-machine" or "LANG=en_US xterm -lc", luit issues a warning:
> "Warning: couldn't find charset data for locale en_US; using ISO 8859-1." (in the xterm example, the warning will appear as the first line in the xterm).
>
> This is because luit cannot find the correct locale.alias file. It looks for /usr/lib/X11/locale/locale.alias, but that file is not present (at least on hardy), it is in /usr/share/X11/locale/locale.alias.
>
> Quick-fix solution:
>
> $ cd /usr/lib/X11
> $ sudo mkdir locale
> $ cd locale
> $ sudo ln -s /usr/share/X11/locale/locale.alias .
>
> Now "luit" behaves properly, at least for latin1 or latin9 type of locales.
>
> Better fix is likely to recompile luit with the correct paths (encodings.dir also has an incorrect path: another /usr/lib/X11 vs /usr/share/X11 mixup).
>
> ProblemType: Bug
> Architecture: amd64
> Date: Thu Oct 9 00:16:54 2008
> DistroRelease: Ubuntu 8.04
> NonfreeKernelModules: nvidia ath_hal
> Package: x11-utils 7.3+1
> PackageArchitecture: amd64
> ProcEnviron:
> SHELL=/bin/bash
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/username/bin:/usr/X11R6/bin
> LANG=nl_NL
> SourcePackage: x11-utils
> Uname: Linux 2.6.24-19-generic x86_64
>

--
Jan-Pieter Cornet <email address hidden>
!! Disclamer: The addressee of this email is not the intended recipient. !!
!! This is only a test of the echelon and data retention systems. Please !!
!! archive this message indefinitely to allow verification of the logs. !!

Bryce Harrington (bryce)
Changed in x11-utils (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for letting us know it's fixed in Intrepid; I'll leave a Hardy task in case anyone wishes to find the fix and backport it.

Changed in x11-utils (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in x11-utils (Ubuntu Hardy):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.