Bug#606145: Patch for leafpad

2010-12-23 Thread Julien Cristau
On Fri, Dec 17, 2010 at 16:39:42 +, brian m. carlson wrote: > tags 606145 + patch > kthxbye > > The problem here is that when writing out the file, we use fputs. fputs > only operates on C strings and stops when it reaches a NUL byte. Of > course, since UTF-16 is a double-byte character set

Bug#606145: Patch for leafpad (UTF-16)

2010-12-17 Thread Jari Aalto
tags 606145 + pending forwarded 606145 Tarot Osuji thanks 2010-12-17 18:39 "brian m. carlson" : | | The problem here is that when writing out the file, we use fputs. fputs | only operates on C strings and stops when it reaches a NUL byte. Of | course, since UTF-16 is a double-byte character set

Bug#606145: Patch for leafpad

2010-12-17 Thread brian m. carlson
tags 606145 + patch kthxbye The problem here is that when writing out the file, we use fputs. fputs only operates on C strings and stops when it reaches a NUL byte. Of course, since UTF-16 is a double-byte character set, ASCII characters are encoded with one byte being 0 (NUL). The easy solutio