Re: bug in transcodeFromUTF8 function

2004-05-27 Thread Nedelcho Stanev
Hello, > Apologies - I should have read all my e-mail before I started replying. > np :) > > Would your input have had multi-byte characters in it? That would > explain why you got the error. yes :) you are right on 100%, i use windows-1251 codepage and multi-byte chars . regards, dech

Re: bug in transcodeFromUTF8 function

2004-05-27 Thread Berin Lautenbach
Apologies - I should have read all my e-mail before I started replying. Ignore last message on this :>. You are quite correct - I missed the logic for handling large buffers. I will update the CVS version this weekend. On the second problem (detailed below), bytesEaten is a reference that should

bug in transcodeFromUTF8 function

2004-05-25 Thread Nedelcho Stanev
Hello all,   there are one small bug in this function. and when package of data is more than 2048 bytes exception occurs problem come from loop where we pass trough original source   line 347   int toEat = ( bytesToEat  > 2048 ? 2048 : bytesToEat );   must be replaced int toEat = ((bytesToE