ALT Linux Bugzilla
– Attachment 2061 Details for
Bug 12177
Ошибка в выводе полей в utf8
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Исправляет ошибку
alt_utf8_with_colons.patch (text/plain), 897 bytes, created by
Andriy Stepanov (stanv)
on 2007-06-28 14:43:47 MSD
(
hide
)
Description:
Исправляет ошибку
Filename:
MIME Type:
Creator:
Andriy Stepanov (stanv)
Created:
2007-06-28 14:43:47 MSD
Size:
897 bytes
patch
obsolete
>diff -ruN gnupg-1.4.7-orig/util/miscutil.c gnupg-1.4.7/util/miscutil.c >--- gnupg-1.4.7-orig/util/miscutil.c 2007-03-06 02:32:06 +0300 >+++ gnupg-1.4.7/util/miscutil.c 2007-06-28 14:00:25 +0400 >@@ -206,8 +206,17 @@ > void > print_string2( FILE *fp, const byte *p, size_t n, int delim, int delim2 ) > { >+ /* From gpg (1) manual page: >+ * --with-colons >+ * Print key listings delimited by colons. Note that the output will >+ * be encoded in UTF-8 regardless of any --display-charset setting. >+ * const byte *p - will be point ot utf8 string. >+ * >+ * Please see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 for additional info >+ * Range (*p >= 0x7f && *p < 0xa0) - is not valid for utf8 encoding. Remove them. >+ */ > for( ; n; n--, p++ ) >- if( *p < 0x20 || (*p >= 0x7f && *p < 0xa0) >+ if( *p < 0x20 > || *p == delim || *p == delim2 > || ((delim || delim2) && *p=='\\')) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12177
: 2061