Hello!
Have found a bug when application is called with unicode symbols in arguments.
Actually they are not supported by java.
Just using java to get calling arguments will modify them and it can affect on application working:
For example: calling application with file argument in path:
C:\files\İnteraktif Vergi Dairesi.webarchive
your file path will be transformed to:
C:\files\Interaktif Vergi Dairesi.webarchive
as you may notice symbol İ
will be replaced to I
. So surprise: no file would be found on given location.
One of the solutions is to use JNA to use Windows kernel libs to get real application arguments. One of examples described here: https://stackoverflow.com/questions/70546736/netbeans-chinese-characters-in-java-project-properties-run-arguments
If I use such kernel solution, I can get actual arguments from kernel and everything is fine - file path will be correct:
C:\files\İnteraktif Vergi Dairesi.webarchive
But if application jar will be bundled or wrapped by exe launcher - all arguments would be replaced by java default arguments processing, so actual arguments would be hidden by java:
C:\files\Interaktif Vergi Dairesi.webarchive
Jar bundled by launch4j-maven-plugin:2.3.2 via net.sf.launch4j.launch4j:3.5.0 under the hood.
Is there any ideas how to avoid this behavior?
If you need I can create a simple representing project.
Hello,
I will check if I can reproduce this problem. Does it happen when you use
launch4j JNI header?
Grzegorz
On Tue, Feb 7, 2023, 20:20 Eugene Zrazhevsky incrediblebd@users.sourceforge.net wrote:
Related
Bugs: #229
Hello! Sorry, actually not. Using just gui mode.
Appending my plugin config, I guess it can answer most questions and help to reproduce the problem:
Hello! Any updates? Any help needed?
Hi Eugene,
I did not forget, I just could not find the time this week. I will look at
this problem as soon as I have a moment.
Best regards,
Grzegorz
On Sat, Feb 18, 2023, 10:57 Eugene Zrazhevsky incrediblebd@users.sourceforge.net wrote:
Related
Bugs: #229