Artifacts Associated With Ticket 949905ffffffffff
Ticket change [37abf561da] (rid 112068) by rmax on 2004-05-07 14:21:27:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
A Unicode null character (\u0000) comes out as \xc0\x80 instead of \x00 when it is being printed to a utf-8 encoded channel. The attached patch for HEAD fixes this and doesn't break any tests here. If the patch gets accepted I'll create one for the 8.4 line as well.
- foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "rmax"
- subsystem initialized to: "44. UTF-8 Strings"
- title initialized to: "Unicode null characters on UTF-8 channels"
- type initialized to: "Bug"
Ticket change [ef5d10b7d4] (rid 108977) by rmax on 2004-05-07 21:22:04:
- icomment:
File Added - 86410: utf-8-nullbyte.patch
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Ticket change [289a236e76] (rid 88724) by rmax on 2004-05-07 22:57:48:
- icomment:
File Added - 86421: utf-8-nullbyte.patch Logged In: YES user_id=124643 While doing further tests, I found, that null bytes that are read from a utf-8 encoded channel also don't get translated to \xc0\x80. The updated patch fixes that as well.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Add attachment "utf-8-nullbyte.patch" [694941daeb] (rid 103225) by rmax on 2004-05-07 22:57:48.
Ticket change [7107dbbb50] (rid 100599) by rmax on 2004-05-07 22:58:37:
- icomment:
File Deleted - 86410:
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Add attachment "utf-8-nullbyte.patch" [a4cad008f6] (rid 110264) by rmax on 2004-05-08 01:19:13.
Ticket change [9135563453] (rid 120586) by rmax on 2004-05-08 01:19:13:
- icomment:
File Added - 86438: utf-8-nullbyte.patch Logged In: YES user_id=124643 Another version of the patch - this time with tests and comments. I'll commit this one to HEAD to get wider testing.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Add attachment "utf-8-nullbyte.patch" [a359ccf8e3] (rid 110031) by rmax on 2004-05-08 02:49:17.
Ticket change [6ce2bf00ed] (rid 128598) by rmax on 2004-05-08 02:49:17:
- icomment:
File Added - 86449: utf-8-nullbyte.patch Logged In: YES user_id=124643 The logic was not quite right before, so here is another (hopefully the last) attempt. The only thing I am not sure about is whether this patch adds the risk of a buffer overflow by one byte when in input mode there is only one spare byte left in the destination buffer and the next character in the source buffer is a null byte.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Ticket change [85e88c5a61] (rid 131404) by rmax on 2004-05-08 02:52:29:
- icomment:
Logged In: YES user_id=124643 Forget that comment about the buffer overflow. I had overlooked, that the size of the dest buffer gets adjusted, so that alyways room for at least one more UTF-8 character.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Ticket change [ecf8cfa296] (rid 103804) by rmax on 2004-05-27 21:36:05:
- icomment:
Logged In: YES user_id=124643 Comitted a fix to HEAD, and core-8-4-branch.
- login: "rmax"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "rmax"
- icomment:
Ticket change [55d1b7e8cf] (rid 94215) by hobbs on 2004-07-03 00:18:56:
- icomment:
Logged In: YES user_id=72656 This is fixed, and left open as a watch item for the next releases (8.4.7 and 8.5a2).
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "hobbs"
- icomment:
Ticket change [bb9ff69f48] (rid 129516) by hobbs on 2004-07-15 02:16:42:
- closedate changed to: "2004-07-14T19:16:42"
- closer changed to: "hobbs"
- status changed to: "Closed"