You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/10 01:29:59 UTC

[GitHub] [netbeans-native-launchers] eirikbakke opened a new pull request, #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

eirikbakke opened a new pull request, #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4

   Currently, NetBeans will refuse to run on Windows if any non-ASCII characters are detected in the installation directory's path. See https://github.com/apache/netbeans/issues/4314 . This is not always necessary.
   
   The condition to be guarded against here was not quite correct. The underlying problem is not with characters that are not in ASCII characters (32-127), but rather with characters that cannot be represented in the default Windows codepage. This is because the JNI interface expects JVM parameters (e.g. classpath) to be passed this way. Thus, certain international characters, such as the Norwegian characters æøå, are not a problem on, say US Windows (which uses codepage windows-1252), whereas others may be (e.g. Cyrillic Андрей if not using a Cyrillic codepage).
   
   In fact, the old "Cannot be run from folder that contains non-ASCII characters in path." warning would _only_ be shown in cases that were actually OK, and omitted in all cases where it should have been shown (where characters were replaced by question mark by Win32 API functions).
   
   This PR adjusts the condition to show a friendly error message when NetBeans cannot actually be run, and avoids showing the message when it should be safe to run NetBeans.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] neilcsmith-net commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1326194686

   Once voted and released, we could ask people seeing the issue to replace and test the new files in NB16 locally as well?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] ebarboni commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
ebarboni commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1326225754

   can call that soon. maven vote are "easy to do". Do we need so other modification ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] ebarboni commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
ebarboni commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1326188244

   no we need to vote and then use the resulting lib in the netbeans repo https://github.com/apache/netbeans/blob/master/harness/apisupport.harness/external/binaries-list + some properties elsewhere https://github.com/apache/netbeans/search?q=launcher-12.5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] eirikbakke commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1325798263

   Thanks! Does the launcher binary automatically become part of the NetBeans build after patches in this repo?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] ebarboni commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
ebarboni commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1310422102

   lets merge


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] neilcsmith-net commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1310021747

   Could you confirm this also corrects the RCP launcher?  I think it calls through to the same code?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] eirikbakke commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1310373022

   @neilcsmith-net I just tested the freshly built app64.exe executable on my RCP app as well. Yes, it works! (And didn't work before the patch.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] neilcsmith-net commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1326262047

   I'd like to look at JDK discovery, but not going to happen any time soon ... so given it's "easy to do" :smile: 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] eirikbakke commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1327994817

   I did some additional work on supporting launching from paths containing arbitrary unicode characters, but it needs a bit of additional testing before I can make a PR out of it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] eirikbakke commented on pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4#issuecomment-1329976314

   There's a followup PR now at https://github.com/apache/netbeans-native-launchers/pull/7 , with a more general solution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans-native-launchers] ebarboni merged pull request #4: Windows: Allow NetBeans to run with non-ASCII path in some cases

Posted by GitBox <gi...@apache.org>.
ebarboni merged PR #4:
URL: https://github.com/apache/netbeans-native-launchers/pull/4


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists