Hi all,

It seems to be there are some bugs in utf-8 support
(sorry, I am not blaming the author). 
The other bug I found was in pgstr_utf8_seek function
in gcore/pgstring.c

In the while(char_num) loop, if p->invalid == 1 then
it is simply returning. At this time, p->offset will
be either -1 or pgstring.num_bytes. So it gives wrong
results, when pgstring_eof is called.

So I changed as shown below.

if(p->invalid)
{
        if(p->offset < 0)
          p->offset = char_num;
        else
          p->offset += (char_num - 1);
        return;
}

And it is working for me.

Sorry, if I am wrong.

=====
-----------------------------------------
P.Raghu Ram Murthy, M-tech (Computer Science),
Room No - 245,
Brahmaputra Hostel,
Indian Institute of Technology Madras,
Chennai - 36.

Mobile:  � (0) 98402 81944
------------------------------------------ 

---------------------------------
Trouble with windows? Re boot.... 
Trouble with Linux? Be root....
---------------------------------



        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to