United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5082632 : give warning if users enter double char into jre/jdk path

Details
Type:
Bug
Submit Date:
2004-08-04
Status:
Open
Updated Date:
2013-07-31
Project Name:
JDK
Resolved Date:
Component:
install
OS:
generic
Sub-Component:
install
CPU:
generic
Priority:
P4
Resolution:
Unresolved
Affected Versions:
6
Targeted Versions:
8-pool

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
To reproduce:

1. On any of the windows 2000, XP, or 2003 install language pack for languages such as Chinese, Japanese, and Korean if it does not come with the OS.

2. Install JDK/JRE 1.4.2_01 or 1.5.0.
3. And choose to customize the installation path.

4. Modify the installation path and insert a double bytes char.
5. At the point when installer is creating jar file the installer will fail and pop up the error dialog with error code 1722.
Note: The tested OS is in English and after installing language pack, the lcoal/regional setting can stays English or to the specific locale used in the path. 

We should detect this situation using regutils, and tell the user that they need to choose a new path without multi-byte characters.
###@###.### 2004-08-04

                                    

Comments
I have tested with 7u40 and 8.
Currently they can be installed successfully even though the installation path includes multi-byte characters.
I have also confirmed that everything is working fine after installation.
So I think this issue can be closed.
                                     
2013-07-31
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-08-06
EVALUATION

You have to detect from either  the installer or regutils function.
Most likely it will be  the latter, I am not sure how to do this, we
will need to check with Sherman, Naoto or  Norbert.
But my guess at this time is that,if we need this functionality
in Regutils we may need to link with unicows.dll (I think) which
is in the coreX.zip file, which we cant unzip. OR we have to bundle
this dll into the installer. 
-Kumar
                                     
2004-08-06
SUGGESTED FIX

Regutils needs  a new function, which will do the following:

boolean IsValidInstallPath(LPSTR install_path) {

   1. Check the default system locale.
   2. Check the installpath for mb characters or does it use codepoints not
      contained in the code-page of the system-locale.
   3. if the default_system_locale does not support the codepoints used in the
    installpath deny the installation, by returning a false.

    return true;
}
                                     
2004-08-06



Hardware and Software, Engineered to Work Together