This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sdaoden
Recipients akuchling, davide.rizzo, ezio.melotti, jesstess, mwh, neologix, python-dev, sdaoden, vstinner
Date 2011-04-09.18:37:30
SpamBayes Score 0.00036677992
Marked as misclassified No
Message-id <20110409183719.GB79519@sherwood.local>
In-reply-to <1302358681.57.0.769544160302.issue11650@psf.upfronthosting.co.za>
Content
On Sat, Apr 09, 2011 at 02:18:01PM +0000, STINNER Victor wrote:
> I noticied a strange behaviour:

So forget all this girlie s...!
Here is a real man's patch!!
You'll notice mysterious function calls with a Py prefix -
they're necessary in this environment, but anyway sorry for that.
(L'ascenseur est là, à gauche.
And i'll hope to come to lesson 2 soon...)

P.S.: this is very simple minded in respect to multibyte 
characters; our terminal library does something like this
(and the complete picture is even more complicated):

jnext:  uni = s_textcodec_decode_single(_sterm_io_codec, cbuf, cbuf_len,
                                        &bytes_consumed);
        cbuf += bytes_consumed;
        cbuf_len -= bytes_consumed;
        if (s_PREDICT_FALSE(uni < 0)) {
                if (uni == -s_ERROR_INPROGRESS) {
                        seq_cpl = s_FAL0;
                        goto jleave;
                }
                /*if (uni == -s_ERROR_ILSEQ || uni == -s_ERROR_INVAL) {*/
                        cbuf_len = 0;
                        uni = sterm_KEY_UNKNOWN;
                        goto jemit;
                /*}*/
        }
Files
File name Uploaded
11650.termios.diff sdaoden, 2011-04-09.18:37:29
History
Date User Action Args
2011-04-09 18:37:31sdaodensetrecipients: + sdaoden, mwh, akuchling, vstinner, ezio.melotti, jesstess, neologix, davide.rizzo, python-dev
2011-04-09 18:37:30sdaodenlinkissue11650 messages
2011-04-09 18:37:30sdaodencreate