summaryrefslogtreecommitdiffstats
path: root/jnlib
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-06-26 21:09:07 +0200
committerWerner Koch <wk@gnupg.org>2008-06-26 21:09:07 +0200
commita6a9181818d86219da202137c1697b826a3ea151 (patch)
treeeeaf866d273a9308bf19091b06cd248333cc058a /jnlib
parentg10/ (diff)
downloadgnupg2-a6a9181818d86219da202137c1697b826a3ea151.tar.xz
gnupg2-a6a9181818d86219da202137c1697b826a3ea151.zip
Start support of TCOS 3 cards.
Support restriction attribute. Fix utf-8 printing problems. Use AES by default.
Diffstat (limited to 'jnlib')
-rw-r--r--jnlib/ChangeLog6
-rw-r--r--jnlib/stringhelp.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/jnlib/ChangeLog b/jnlib/ChangeLog
index d09834419..c7bef6086 100644
--- a/jnlib/ChangeLog
+++ b/jnlib/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-26 Werner Koch <wk@g10code.com>
+
+ * stringhelp.c (print_sanitized_buffer2): 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-13 Werner Koch <wk@g10code.com>
* dotlock.c: Reformat code and implement locking for W32.
diff --git a/jnlib/stringhelp.c b/jnlib/stringhelp.c
index 028750528..50e869cea 100644
--- a/jnlib/stringhelp.c
+++ b/jnlib/stringhelp.c
@@ -406,9 +406,8 @@ print_sanitized_buffer2 (FILE *fp, const void *buffer, size_t length,
for (; length; length--, p++, count++)
{
- /* Fixme: Check whether *p < 0xa0 is correct for utf8 encoding. */
if (*p < 0x20
- || (*p >= 0x7f && *p < 0xa0)
+ || *p == 0x7f
|| *p == delim
|| *p == delim2
|| ((delim || delim2) && *p=='\\'))