Bug 757 - Regression of URL to URI conversion (Bug 683, Commit b98825eb7cfb61aead4a7dff57471cd2d2c26823)
Summary: Regression of URL to URI conversion (Bug 683, Commit b98825eb7cfb61aead4a7dff...
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: pc_all linux
: --- major
Assignee: Sven Gothel
Depends on:
Blocks: 683 820 857
  Show dependency treegraph
Reported: 2013-06-18 22:49 CEST by Maxime Caignart
Modified: 2013-10-11 20:05 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
gluegen 4376174ad35fdaf76f59430328582e913f468674 jogl 5b77c7f345d1e36c152d70982db0e022be6cfa2a
Workaround: ---

log file (12.80 KB, text/x-log)
2013-06-18 22:49 CEST, Maxime Caignart

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Caignart 2013-06-18 22:49:29 CEST
Created attachment 482 [details]
log file

-Updated from 2.0rc11 to the 06.17.2013 build.
-My game won't launch anymore with no modification of the classpath, just replaced the libs

See log file, it seem that there's an issue with path containing space.
Comment 1 Sven Gothel 2013-06-19 04:49:48 CEST
Regression of URL to URI conversion (Encoded path not compatible w/ file scheme.
Regression of (Bug 683, Commit b98825eb7cfb61aead4a7dff57471cd2d2c26823).
The URI encoded path cannot be read by File I/O (if file scheme), since the latter
requests an UTF8/16 name, not an URI encoded name (i.e. %20 for space).
The encoded URL is produced if calling 'uri.toURL()' and hence
the new 'IOUtil.toURL(URI)' provides a custom conversion recovering 
the UTF name via 'new File(uri).getPath()'.
    Tested w/
      - synthetic URI/URL coposition (unit test)
      - manual w/ moving 'build' to 'build öä lala' for gluegen, joal and jogl.
    - 'URI JarUtil.getURIDirname(URI)'  -> 'URI IOUtil.getDirname(URI)'