JDK-4302971 : java.io: Use wide filesystem APIs under Win32
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.2.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2000-01-06
  • Updated: 2000-01-06
  • Resolved: 2000-01-06
Related Reports
Duplicate :  
Description

Name: krT82822			Date: 01/06/2000


(see also 4185525)

java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads, nojit)

Java is supposed to finally eliminate the whole character set problem.
Everything is maintained in Unicode.
When put together with Windows NT, whose filesystem is in Unicode, and
whose filesystem APIs are available in Unicode, there should be no
more problems of writing servers whose filesystem manipulation
doesn't work depending on the client's codeset.
However, I have found that the JVM under NT converts all filesystem
names from Unicode in to the ANSI codeset, and then calls the narrow
versions of the filesystem APIs.
So java will convert Unicode to ANSI, and then the Win32 subsystem will
promptly convert back ANSI to Unicode and call the underlying NT wide
filesystem calls.  What a waste!
Yes, I understand, you have one generic Win32 JVM which works on win95/98
as well as NT, and the Win95/98 doesn't support the wide calls.
This just makes it a little harder, but its standard Win32 programming
techniques at this point.  There really aren't that many file system APIs.
(Review ID: 99666) 
======================================================================

user later noted:
(I have just been pointed at bug #4185525 which is much more long winded
but is essentially the same bug.)

Thus, we'll dupe this bug to # 4185525.

Comments
EVALUATION Duping to 4185525 (1/5/2000, kevin.ryan@eng)
11-06-2004

WORK AROUND Name: krT82822 Date: 01/06/2000 None. I've contemplated writing my own set of File native classes, but this wouldn't be easy. Could you please add to the Impact On User set of radio buttons one more, which is what I want to tick off: * No immediate impact, however our product will have reduced functionality ======================================================================
11-06-2004