delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <f60fe001001041450ub25a7a8h254a580175e4c9c1@mail.gmail.com> |
References: | <f519c7c31001041418q1c24bae9t237ee637ed20c0f6 AT mail DOT gmail DOT com> <f519c7c31001041425j4d193528gb9aeca0bf41656de AT mail DOT gmail DOT com> <loom DOT 20100104T233234-168 AT post DOT gmane DOT org> <f60fe001001041450ub25a7a8h254a580175e4c9c1 AT mail DOT gmail DOT com> |
From: | "Eduardo D'Avila" <erdavila AT gmail DOT com> |
Date: | Mon, 4 Jan 2010 21:24:44 -0200 |
Message-ID: | <f519c7c31001041524ib8de2e8xaa2b95512604873@mail.gmail.com> |
Subject: | Re: Bug printing string where the 128th char is multibyte |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 AT gmail DOT 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 v= ersion >> of your report. > > The Perl and Python programs are not buggy, but they also don't > exhibit the behavior for me. =A0Although I'm still running a prerelease > 1.7.0 > > Both also feature simpler ways to build the string, btw. > > Perl: > =A0 =A0my $str =3D '0123456789' x 13; > =A0 =A0substr($str,127,1) =3D '=E7'; > > Python: > =A0 =A0str =3D '0123456789' * 13 > =A0 =A0str =3D str[:128] + '=E7' + str[128:] > > > > > -- > Mark J. Reed <markjreed AT gmail DOT com> > > -- > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > Unsubscribe info: =A0 =A0 =A0http://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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |