JDK-4759354 : Locale 'ru_RU.CP1251' is not supported
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: x86
  • Submitted: 2002-10-08
  • Updated: 2003-02-24
  • Resolved: 2003-02-24
Related Reports
Relates :  
Description
Name: gm110360			Date: 10/07/2002


FULL PRODUCT VERSION :
[redcat@freestyler bin]$ ./java -version
WARNING: Default charset CP1251 not supported, using ISO-8859-1 instead
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)


FULL OPERATING SYSTEM VERSION :
RedHat 7.3 linux

DESCRIPTION OF THE PROBLEM :
Runing java on Linux system with locale ru_RU.CP1251 gives a mesage: 'WARNING: Default charset CP1251 not supported, using ISO-8859-1 instead'. But encoding CP1251 is supported by java, and locale ru_RU (language Russian, country
Russia) is supported too. Please add support for this locale:
ru_RU.CP1251 (language Russian, country Russia).
And by the way:
uk_UA.CP1251 (language Ukrainian, country Ukraine).

On jdk 1.4.0 runing java on those encodings gives
java.lang.NullPointerException.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. 'java' or any tool from jdk


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER WORKAROUND :
Change system locale to ru_RU.KOI8-R.
(Review ID: 164659) 
======================================================================

Comments
EVALUATION I have verified that the default encoding string passed up from Linux, "CP1251" is not recognized. To reproduce I installed glibc-i18ndata and used localedef -i -c to create the CP1251, ru_RU and uk_UA Russian and Ukrainian locales respectively. Will address this incomplete locale support in the next J2SE feature release. ###@###.### 2003-01-20 This bug seems to have already been fixed in 1.4.2 as a side effects of code added to address bugID 4747362. The required (and previously missing Cp1251) alias required to bootstrap in Cp1251 locales was added as part of that much larger performance related fix. The fix should be verifiable from about b8 onwards. ###@###.### 2003-02-24
24-02-2003