diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/ChangeLog | 6 | ||||
-rw-r--r-- | common/estream.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/common/ChangeLog b/common/ChangeLog index 3840eaacd..dcee95bbf 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,9 @@ +2008-06-26 Werner Koch <[email protected]> + + * estream.c (es_write_sanitized): Loose check for control + characters to better cope with utf-8. The range 0x80..0x9f is + nowadays not anymore accidently used for control charaters. + 2008-06-25 Marcus Brinkmann <[email protected]> Revert last three changes related to handle translation. diff --git a/common/estream.c b/common/estream.c index e712e85cd..254fab93a 100644 --- a/common/estream.c +++ b/common/estream.c @@ -3074,7 +3074,7 @@ es_write_sanitized (estream_t ES__RESTRICT stream, for (; length; length--, p++, count++) { if (*p < 0x20 - || (*p >= 0x7f && *p < 0xa0) + || *p == 0x7f || (delimiters && (strchr (delimiters, *p) || *p == '\\'))) { |