United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4710890 : native2ascii couldn't write content to existed file on windows

Details
Type:
Bug
Submit Date:
2002-07-04
Status:
Resolved
Updated Date:
2002-11-07
Project Name:
JDK
Resolved Date:
2002-11-07
Component:
core-libs
OS:
windows_2000
Sub-Component:
java.nio.charsets
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.1
Fixed Versions:
1.4.2 (mantis)

Related Reports

Sub Tasks

Description
hopper b16,
windows2000 sch

reproduce:
in windows cmd shell, run it with two times:
c:\tmp> native2ascii <any native file> 1.txt

will get the information:
java.lang.Exception: 1.txt could not be written.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b07


                                     
2004-06-14
EVALUATION

Bug determined to exist on win32 systems only.
See Workaround description. Fix in progress for 1.4.2
###@###.### 2002-08-02
                                     
2002-08-02
WORK AROUND

If run within shell environment (eg CygWin or MKS) write a shell wrapper
for native2ascii which determines if output filename already exists and
is writeable. The script should remove the output file if both conditions
are met before invoking the 1.4.1 native2ascii executable with the supplied
args.
###@###.### 2002-08-02
                                     
2002-08-02



Hardware and Software, Engineered to Work Together