JDK-4486077 : appletviewer can't run on Windows 2000 in Hindi locale
  • Type: Bug
  • Component: tools
  • Sub-Component: appletviewer
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-07-30
  • Updated: 2001-08-13
  • Resolved: 2001-08-06
Related Reports
Duplicate :  
Description
On a Win 2000, with Hindi enabled as default locale, installed Merlin b74, run SwingSet2 or Font2DTest, the following exception is thrown:

R:\binaries\win\latest\demo\jfc\SwingSet2>java -version
  a v a   v e r s i o n   " 1 . 4 . 0 - b e t a _ r e f r e s h "
 J a v a ( T M )   2   R u n t i m e   E n v i r o n m e n t ,   S t a n d a r d   E d i t i o n   (
 b u i l d   1 . 4 . 0 - b e t a _ r e f r e s h - b 7 4 )
 J a v a   H o t S p o t ( T M )   C l i e n t   V M   ( b u i l d   1 . 4 . 0 - b e t a _ r e f r e
 s h - b 7 4 ,   m i x e d   m o d e )

R:\binaries\win\latest\demo\jfc\SwingSet2>java -jar SwingSet2.jar
Exception in thread "main" j a v a . u t i l . z i p . Z i p E x c e p t i o n :   T h e   f i l e n
 a m e ,   d i r e c t o r y   n a m e ,   o r   v o l u m e   l a b e l   s y n t a x   i s   i n c
 o r r e c t
         a t   j a v a . u t i l . z i p . Z i p F i l e . o p e n ( N a t i v e   M e t h o d )
         a t   j a v a . u t i l . z i p . Z i p F i l e . < i n i t > ( Z i p F i l e . j a v a : 1
 1 5 )
         a t   j a v a . u t i l . j a r . J a r F i l e . < i n i t > ( J a r F i l e . j a v a : 1
 2 5 )
         a t   j a v a . u t i l . j a r . J a r F i l e . < i n i t > ( J a r F i l e . j a v a : 5
 9 )

======================================================================
Run applet demo Clock, the following exception is thrown

R:\binaries\win\latest\demo\applets\Clock>appletviewer example1.html
I / O   e x c e p t i o n   w h i l e   r e a d i n g :   R : \ b i n a r i e s \ w i n \ l a t e s
t \ d e m o \ a p p l e t s \ C l o c k \ example1.htm  ( T h e   f i l e n a m e ,   d i r e c t o
  y   n a m e ,   o r   v o l u m e   l a b e l   s y n t a x   i s   i n c o r r e c t )

Note: Same tests in English (U.S.) or Thai locale work fine.

Comments
EVALUATION This is a bug in java launcher, source file bin/java.c java.c uses String(Byte[]) constructor to transform command arguments to Java Strings, instead of using JNU_GetStringPlatform, which we recently fixed. I will try to get this fixed before our August 6 integration. konstantin.kladko@Eng 2001-07-30
30-07-2001