Bug 1353

Summary: java.lang.UnsatisfiedLinkError for gluegen-rt.dll due to localized tempdir name
Product: [JogAmp] Jogl Reporter: Randolf Schultz <randolf.schultz>
Component: utilAssignee: Sven Gothel <sgothel>
Severity: blocker CC: gouessej
Priority: P4    
Version: 2.4.0   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---
Bug Depends on: 1366    
Bug Blocks:    

Description Randolf Schultz 2017-03-30 15:29:43 CEST

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

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

Is changing
String.format("_%04d", i);
String.format(null, "_%04d", i);
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...

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.
Comment 2 Sven Gothel 2019-03-30 05:59:13 CET
Randolf, you probably found a good one. 
I have generalized the issue in Bug 1366 and a fix will be underway for version 2.4.0.
Thank you.
Comment 3 Sven Gothel 2019-03-30 06:13:15 CET
Fixed Bug 1366 

I close this one now. Please reopen if not fixing the issue at hand.