Commit 632044a
Billy donahue avoid isprint (open-source-parsers#1191)
* avoid isprint
`std::isprint` is locale-specific and the JSON-spec is not.
In particular, isprint('\t') is true in Windows CP1252.
Has bitten others, e.g. laurikari/tre#64
Fixes open-source-parsers#1187
* semicolon (rookie mistake!)
* Windows tab escape testing with custom locale (open-source-parsers#1190)
Co-authored-by: Nikolay Baklicharov <thestorm.nik@gmail.com>1 parent b3189a0 commit 632044a
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2702 | 2702 | | |
2703 | 2703 | | |
2704 | 2704 | | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
2705 | 2733 | | |
2706 | 2734 | | |
2707 | 2735 | | |
| |||
0 commit comments