summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-04-21 20:42:10 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-04-21 20:42:10 -0700
commit3fcfbdf34170d6ee499e5ecb78cb4072c098f9d0 (patch)
tree2cea82ee08de65a150ddec8f5d95fb099cb46c47 /win
parentef8fe557841c440bf9e3e13ee0801bc127091b7e (diff)
downloadtxr-3fcfbdf34170d6ee499e5ecb78cb4072c098f9d0.tar.gz
txr-3fcfbdf34170d6ee499e5ecb78cb4072c098f9d0.tar.bz2
txr-3fcfbdf34170d6ee499e5ecb78cb4072c098f9d0.zip
Harmonize rules for string and character printing.
In this patch we change which characters objects are printed using hex escapes, and which characters are printed as hex when printing string literals. * lib.c (obj_print_impl): Add DEL (U+7F) to the list of character objects which are printed as hex. In a string literal, it's already printed as \x7F. Use upper case hex rather than lower case. (out_str_char): Copy the rules used by obj_print_impl for deciding what string constituents to print as hex and how to print it. So for instance, U+80 to U+A0 will now print in hex as well as the U+D800 to U+DFFF range, rather than just U+DC00 to U+DCFF, and the BOM code U+FFFE, U+FFFF and anything higher.
Diffstat (limited to 'win')
0 files changed, 0 insertions, 0 deletions