Output, to_ascii: Escape non-ascii chars with \xnn instead of \unnnn whenever possible #172

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

papandreou commented Mar 31, 2013

Previously ASCII-only mode was a bit wasteful:

$ uglifyjs --beautify ascii_only=true
alert("føø");
^D
alert("f\u00f8\u00f8");

With this patch the output is:

alert("f\xf8\xf8");
Owner

mishoo commented Mar 31, 2013

Merged this too, thanks.

@mishoo mishoo closed this Mar 31, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment