mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
* miscutil.c (print_string2): Loose check for control characters
to better cope with utf-8. The range 0x80..0x9f is nowadays not anymore accidently used for control charaters. Fixes bug#1103.
This commit is contained in:
parent
e5a5b81d24
commit
f52ef6d450
@ -1,3 +1,9 @@
|
||||
2009-08-18 Werner Koch <wk@g10code.com>
|
||||
|
||||
* miscutil.c (print_string2): Loose check for control characters
|
||||
to better cope with utf-8. The range 0x80..0x9f is nowadays not
|
||||
anymore accidently used for control charaters. Fixes bug#1103.
|
||||
|
||||
2009-08-11 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* strgutil.c (string_to_utf8): New function to convert a Latin-1
|
||||
|
@ -256,7 +256,8 @@ void
|
||||
print_string2( FILE *fp, const byte *p, size_t n, int delim, int delim2 )
|
||||
{
|
||||
for( ; n; n--, p++ )
|
||||
if( *p < 0x20 || (*p >= 0x7f && *p < 0xa0)
|
||||
if (*p < 0x20
|
||||
|| *p == 0x7f
|
||||
|| *p == delim || *p == delim2
|
||||
|| ((delim || delim2) && *p=='\\'))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user