-
-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix issue 12897 - toJSON, add the escapeNonAsciiChars option #4106
Conversation
| { | ||
| import std.uni : isControl; | ||
|
|
||
| if(isControl(c)) | ||
| with (JSONOptions) if (isControl(c) || ((options & escapeMBC) >= escapeMBC && c >= 0x80)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: this line seems a little long; wrap it?
|
Other than that, LGTM. |
|
escapeNonAsciiChars is much more accurate |
|
LGTM |
|
Auto-merge toggled on |
|
Yes, it is. Not sure why you blame the host or auto-tester rather than On 4/7/2016 4:49 PM, Basile Burg wrote:
|
|
If this only happens on a 32 bit machine that generates 64 bit code that's already a trail. |
|
@bbasile It's not a 32-bit machine, just a 32-bit compiler that generates 64-bit code. You wouldn't be able to build if it was a 32-bit machine I don't think. @braddr I imagine what has happened is that the memory usage has crept to the threshold for dmd. I'm not sure what we can do about it, IIRC @WalterBright, the compiler never frees memory in exchange for compilation speed. It's likely we have to figure out a better way. Not completing is worse than completing slower. |
|
In addition, I think win farm 1 is the only 64-bit windows tester. So we have a big problem if this can't pass anything. |
|
@braddr , can you look at https://auto-tester.puremagic.com/pull-history.ghtml?projectid=1&repoid=3&pullid=4106 ? I don't know if you've get the notification for my previous online message but it seems that there's an auto-tester bug.
It's been like this for hours: |
|
Auto-merge toggled off |
|
Auto-merge toggled on |
|
@bbasile Seems the auto tester lost track of who was supposed to auto-merge it. It needs github credentials to do so. |

This new option allows a better interoperability with software made in other languages and that are not able to read string values containing non-ASCII characters.