Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10645 closed defect (fixed)

-encode-unicode command line switch doesn’t have any effect

Reported by: davidaurelio Owned by: Richard Backhouse
Priority: high Milestone: 1.4.1
Component: ShrinkSafe Version: 1.4.0
Keywords: shrinksafe, unicode Cc:
Blocked By: Blocking:


Using the -encode-unicode command line switch does not seem to have the effect described in the shrinksafe help.

$ java -jar  shrinksafe.jar -?
    -escape-unicode  Use Javascript \u#### notation for non-ASCII Characters.

$  echo '"\u03B1 ω";' | java -jar -Dfile.encoding=UTF8 shrinksafe.jar -encode-unicode
"α ω";

The expected result is “"\u03B1 \u03C9";” It does not work when using an input file, either.

Change History (5)

comment:1 in reply to:  description Changed 12 years ago by davidaurelio

Sorry, the code in the initial bug report is wrong. Corrected version:

$  echo '"\u03B1 ω";' | java -jar -Dfile.encoding=UTF8 shrinksafe.jar -escape-unicode

comment:2 Changed 12 years ago by Adam Peller

Component: GeneralShrinkSafe
Owner: changed from anonymous to Richard Backhouse

comment:3 Changed 12 years ago by Adam Peller

Milestone: tbd1.4.1

Thank you, davidaurelio. I'm sure we had a unit test for this somewhere, but I can't find it in the history.

comment:4 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [21191]) -escape-unicode arg was not being passed along. Add unit test. Fixes #10645, Refs #6628

comment:5 Changed 12 years ago by Adam Peller

(In [21230]) Rebuilt shrinksafe. Refs #10645, #6628

Note: See TracTickets for help on using tickets.