Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Conversation

laanwj
Copy link
Contributor

@laanwj laanwj commented Nov 5, 2015

All control characters (U+0000..U+001f) should be escaped according to RFC4627. Update gen accordingly.

Also escape U+007f DELETE - is not mentioned in RFC4627 as a control character, but it is helpful to escape it as many fonts don't render it, or weirdly.

Adds a basic roundtrip test to check escaping.

All control characters (U+0000..U+001f) should be escaped according to
RFC4627.

Also escape `U+007f DELETE` - is not mentioned in RFC4627 as a control
character, but it is helpful to escape it as many fonts don't render it,
or weirdly.
@laanwj
Copy link
Contributor Author

laanwj commented Nov 7, 2015

Just found out that it was already attempted to handle this through isprint - however this function is locale dependent, this had the correct outptut in US locale. Updated to make the write locale independent.

@laanwj
Copy link
Contributor Author

laanwj commented Nov 9, 2015

Ping @jgarzik

@jonasschnelli
Copy link
Contributor

ACK

Otherwise it's not part of 'make dist'
@maflcko
Copy link

maflcko commented Dec 2, 2015

Nit fixed in 7482163

jgarzik pushed a commit that referenced this pull request Dec 2, 2015
@jgarzik jgarzik merged commit 5e7985a into jgarzik:master Dec 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants