Bug printing string where the 128th char is multibyte
Eduardo D'Avila
erdavila@gmail.com
Mon Jan 4 22:35:00 GMT 2010
I've found a bug that happens when the 128th (index 127 on a 0-based
string) char of a string is a multibyte char. When I print such
string, only the multibyte char and the chars after it are displayed.
Apparently, if the multibyte char is in another position, the error
doesn't happen.
I have attached Perl and Python scripts and a C source that
demonstrate the problem.
This bug was noticed after updating to Cygwin 1.7.1 and was confirmed
on different machines.
Eduardo R. D'Avila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BUG.py
Type: application/octet-stream
Size: 433 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100104/b8ba4736/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BUG.c
Type: application/octet-stream
Size: 452 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100104/b8ba4736/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BUG.pl
Type: application/octet-stream
Size: 439 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100104/b8ba4736/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 68553 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100104/b8ba4736/attachment-0003.obj>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list