The Samba-Bugzilla – Attachment 3464 Details for
Bug 5178
Registry backend: Problems when editing with regedit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix the empty string problem
regEmptyString.patch (text/plain), 653 bytes, created by
Matthias Dieter Wallnöfer
on 2008-08-11 12:42:19 UTC
(
hide
)
Description:
Patch to fix the empty string problem
Filename:
MIME Type:
Creator:
Matthias Dieter Wallnöfer
Created:
2008-08-11 12:42:19 UTC
Size:
653 bytes
patch
obsolete
>diff --git a/source/lib/charset/iconv.c b/source/lib/charset/iconv.c >index 4f4bc8f..7a07a86 100644 >--- a/source/lib/charset/iconv.c >+++ b/source/lib/charset/iconv.c >@@ -593,6 +593,14 @@ static size_t utf8_push(void *cd, const char **inbuf, size_t *inbytesleft, > uint8_t *c = (uint8_t *)*outbuf; > const uint8_t *uc = (const uint8_t *)*inbuf; > >+ /* Special case: Windows (e.g. "regedit") also expects an empty buffer >+ with length 1 as a valid empty UTF8 string */ >+ if (in_left == 1 && uc[0] == 0 && out_left >= 1) { >+ c[0] = uc[0]; >+ in_left -= 1; >+ out_left -= 1; >+ } >+ > while (in_left >= 2 && out_left >= 1) { > unsigned int codepoint; >
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 Raw
Actions:
View
Attachments on
bug 5178
:
3090
|
3108
|
3109
|
3110
|
3111
|
3112
|
3113
|
3152
|
3400
|
3464
|
3466
|
3472
|
3473
|
3474
|
3480
|
3481
|
3497
|
3572