Bug 15731 - Setting japanese locale, causes all OS commands to fail
Setting japanese locale, causes all OS commands to fail
Product: Red Hat Linux
Classification: Retired
Component: locale-ja (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Matt Wilson
Depends On:
  Show dependency treegraph
Reported: 2000-08-08 11:32 EDT by Need Real Name
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-08-29 09:20:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2000-08-08 11:32:12 EDT
Installed a mostly default english version of Pinstripe Beta-3 and also

If you run:
  1. export LANG=japanese   (valid language as listed by a "locale -a" ) 
  2. date
  On Beta-3 I get:
  Tue Aug  8 10:33:07 BST 2000
  On Beta-5 I get:
  date: loadlocale.c:220: _nl_load_locale: Assertion `idx % 4 == 0' failed.
  Now the behaviour I got on Beta-3 seems plausible, i.e. it thinks that
  japanese is not a valid locale, and reverts to using "C". I would have
  preferred to have seen some funny japanese characters in the date string
  but I am not too concerned since it does not prevent anything else from
  The behaviour on Beta-5 is more worrying - since I get this error for any
  OS command I run e.g. "ls".
Comment 1 Matt Wilson 2000-08-08 17:22:13 EDT
you need to rebuild the locale-ja package from the src.rpm using "rpm
--rebuild".  After installing the resulting binary package, the Japanese locale
will work again.

This has been fixed here for quite some time.
Comment 2 Need Real Name 2000-08-29 09:20:52 EDT
So can you confirm that this is not going to be a problem in the final RedHat7.0
release ? - or will everyone have to download and re-compile the source ?
Comment 3 Matt Wilson 2000-08-29 11:33:58 EDT
oh, of course this won't be a problem in final - Japanese support would be
totally broken.

The locale def is in the glibc package now, so if the binary format ever changes
again there won't be problems.

Note You need to log in before you can comment on or make changes to this bug.