You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/11/01 15:04:55 UTC

[jira] Updated: (MNG-4249) Environment variable with non-ASCII characters

     [ http://jira.codehaus.org/browse/MNG-4249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4249:
-----------------------------------

    Attachment: MNG-4249.zip

I could not reproduce the issue using the attached test project and an unprivileged account called "Hömeß" on Vista, see the embedded logs for more details.

What looks interesting to me is this part of the outputs you provided:
{noformat}
[WARNING] Unable to find the javadoc version: Exit code: 1 - The system cannot find the path specified.
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)

Command line was:P:\Programs\Java\jdk6\jre\..\bin\javadoc.exe -J-version
{noformat}
Everything after the "Exit code: 1 - " till "Command line was:" is the console output of the forked process, i.e. you should be able to reproduce the message "The system cannot find the path specified" by manually executing the following command in your shell:
{noformat}
cmd.exe /X /C "P:\Programs\Java\jdk6\jre\..\bin\javadoc.exe -J-version"
{noformat}
But apparently this command only involves your shell interpreter and the Java tools. Whatever goes wrong there, is outside of the scope of Maven.

> Environment variable with non-ASCII characters
> ----------------------------------------------
>
>                 Key: MNG-4249
>                 URL: http://jira.codehaus.org/browse/MNG-4249
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>         Environment: Windows Vista SP2 (x64) - English
> Java 6 (x64)
> java version "1.6.0_14"
> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
> Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
> Java version: 1.6.0_14
> Java home: P:\Programs\Java\jdk6\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "amd64" Family: "windows"
> surefire-plugin 2.4.3
> javadoc-plugin 2.5
>            Reporter: André Fügenschuh
>            Priority: Minor
>         Attachments: MNG-4249.zip, output.txt, output2.txt
>
>
> This is a follow-up to MJAVADOC-236.
> Running 'mvn test' or 'mvn javadoc:javadoc' generates error messages of type "The system cannot find the path specified." although tests are run successfully and javadoc files are generated.
> (see the attached [abbreviated] output)
> The reason is my account name that contains non-ASCII chars, e. g. 'Hömer', so the Windows environment variable %USERPROFILE% is: '%HOMEDRIVE%\Users\Hömer'.
> If I change it to '%HOMEDRIVE%\Users\HMER~1' (the default '8dot3' name on Windows) all runs fine!
> Steps to reproduce:
> 1) Create an account with non-ASCII chars, e. g. 'Hömer'
> 2) Run 'mvn test' and 'mvn javadoc:javadoc' on an arbitrary project
> 3) Look for "The system cannot find the path specified." messages.
> 4) set %USERPROFILE%=%HOMEDRIVE%\Users\HMER~1
> 6) No error messages appear.
> Additional information:
> - For surefire, forking must be enabled (default forkMode is 'once'), if you disable it, everything runs fine. 
> - I played around with changing the Windows 'codepage' used for shells (cmd.exe) from English (1252/437) to European (1250/850), without success.
> - Maybe, a commonly shared component is responsible, but, as the error messages are not verbose enough (even in debug mode), I cannot figure out what, so I place the report here.
> Workaround:
> Set the env. var %USERPROFILE% using the '8dot3' name variant of %USERNAME%.
> (I have a generic solution for setting %USERPROFILE% this way to any shell, but I don't want to go into details here; if it is of interest, I can describe it further.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira