mkdir_p wrongfully encodes directory names when ran from a Jar
--------------------------------------------------------------
Key: JRUBY-5435
URL: http://jira.codehaus.org/browse/JRUBY-5435
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.6RC1
Environment: $ uname -a
Darwin mbpldc.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17
PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
$ locale
LANG="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_CTYPE="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_ALL=
Terminal: iterm2 in UTF-8
Reporter: lucas dicioccio
Priority: Blocker
This bug blocks the tests I would like to implement for JRUBY-5345 (we might
need to reopen once we have a reliable test suite for this case).
When creating a directory with an "hié" (UTF-8 e-accute-accent) from within a
Jar, will instead create a directory called "hi%89" (URL Encoded version of
MacRoman e-accute-accent).
To prevent any source-file encoding issue, I manually pack the "é" accent from
its binary representation with [0xc3, 0xa9].pack('C*') and I freeze the string.
In https://github.com/lucasdicioccio/jruby/commits/accents
I've modified test_jar_complete.rb:
* added a test case for jar run from paths with accents (JRUBY-5345)
* adding an assertion on the content of the test directory content (this bug
report)
I've also added a similar test in test_jruby_dirnames.rb . It executes without
failure/errors with ./bin/jruby from the same build. Thus I think the issue is
JAR-related.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email