Bug 1353 - java.lang.UnsatisfiedLinkError for gluegen-rt.dll due to localized tempdir name
Summary: java.lang.UnsatisfiedLinkError for gluegen-rt.dll due to localized tempdir name
Status: UNCONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: tbd
Hardware: All windows
: P4 blocker
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2017-03-30 15:29 CEST by Randolf Schultz
Modified: 2017-04-20 15:50 CEST (History)
1 user (show)

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randolf Schultz 2017-03-30 15:29:43 CEST
Greetings,

when we set the default locale of our application to "hindi" (on a non
hindi Windows), JOGL fails to load with
-snip-
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\redacted\AppData\Local\Temp\jogamp_????\file_cache\jln233449649495440797\jln200071770090761889\gluegen-rt.dll: Can't find dependent libraries
-snap-

The ???? are localized numbers (in hindi) which some other part of
the system probably can not cope with.

Is changing
String.format("_%04d", i);
to
String.format(null, "_%04d", i);
in
java/com/jogamp/common/util/IOUtil.java/getSubTempDir()
a viable fix?

Note that since our build is now completely Maven based, we use JOGL 2.3.1,
so that we can not easily test the bug on current versions, but judging
from the current source code, we feel this problem persists...

regards,
Randolf
Comment 1 Julien Gouesse 2017-04-20 15:50:44 CEST
I don't understand why testing against JOGL 2.3.2 is difficult for you.

I'm not sure that your fix is viable as it would behave like no locale would be taken into account. I have to investigate.