Bug printing string where the 128th char is multibyte
Eduardo D'Avila
erdavila@gmail.com
Mon Jan 4 23:25:00 GMT 2010
The script I use displays string from an IMAP server. The best
solution would be splitting every string in pieces of at most 127
chars. This is a workaround, but the bug is still there and can show
up on other applications.
I confirmed the bug on two different versions of Windows XP (Home and
Professional Editions) at my home and my workplace. I've just checked
also on a Windows Vista notebook and the bug didn't happen.
I never developed for Cygwin, but I'm willing to see if I can do and
debug this. Unless someone confirms that this is not a Cygwin-related
bug...
Eduardo R. D'Avila
2010/1/4 Mark J. Reed <markjreed@gmail.com>:
> On Mon, Jan 4, 2010 at 5:35 PM, Eric Blake wrote:
>> What you've found is a bug in your own program, at lesat for the BUG.c version
>> of your report.
>
> The Perl and Python programs are not buggy, but they also don't
> exhibit the behavior for me. Although I'm still running a prerelease
> 1.7.0
>
> Both also feature simpler ways to build the string, btw.
>
> Perl:
> my $str = '0123456789' x 13;
> substr($str,127,1) = 'ç';
>
> Python:
> str = '0123456789' * 13
> str = str[:128] + 'ç' + str[128:]
>
>
>
>
> --
> Mark J. Reed <markjreed@gmail.com>
>
> --
> 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
--
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