Skip Menu |
 

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 33529
Status: open
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: yesheng [...] tsinghua.org.cn
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug Report of Tk-804.028 Tk::Text
Date: Sat, 23 Feb 2008 12:02:00 +0800
To: bug-Tk [...] rt.cpan.org
From: yesheng [...] tsinghua.org.cn
Download (untitled) / with headers
text/plain 4.1k
Dear CPAN group, There is an important issue found in Perl Tk-804.028 Tk::Text widget. Copy and paste many lines of Chinese Charactors to Tk::Text window, will cause application crash, its almost 100% reproducable. Following is the result of copying and pasting all text of www.google.cn to notepad 3 times, and pasting all of them to Tk:Text window. (1) SV = PV(0x319d508) at 0x319cdac REFCNT = 1 FLAGS = (POK,pPOK) PV = 0x31a48a4 "\346\211\200\346\234\211\347\266\262\351\240\201 \345\234\226\ 347\211\207 \346\226\260\350\201\236 \347\266\262\344\270\212\350\253\226\345\24 3\207 \347\266\262\350\252\214\346\220\234\345\260\213 Gmail \346\233\264\345\24 4\232 \342\226\274 \346\227\245\346\233\206 \347\233\270\347\211\207 \346\226\20 7\344\273\266 \351\226\261\350\256\200\345\231\250 \346\233\264\345\244\232 \302 \273 \347\231\273\345\205\245\n\n\345\217\260\347\201\243 \n\n \n \351\200\26 2\351\232\216\346\220\234\345\260\213\n \344\275\277\347\224\250\345\201\217\34 5\245\275\n \350\252\236\350\250\200\351\201\270\351\240\205 \n\346\220\234\345 \260\213\357\274\232 \346\211\200\346\234\211\347\266\262\351\240\201 \344\270 \255\346\226\207\347\266\262\351\240\201 \347\271\201\351\253\224\344\270\255\3 46\226\207\347\266\262\351\240\201 \345\217\260\347\201\243\347\232\204\347\266 \262\351\240\201 \n\n\n\345\202\263\347\265\261\351\246\226\351\240\201 | iGo ogle: \345\217\260\347\201\243\351\246\226\351\240\201\n\n\n\345\273\243\345\221 \212\346\234\215\345\213\231 - Google \345\256\214\345\205\250\346\211\213\345\2 06\212 - Google.com in English\n\302\2512008 Google\n\n\346\211\200\346\234\211\ 347\266\262\351\240\201 \345\234\226\347\211\207 \346\226\260\350\201\236 \347\2 66\262\344\270\212\350\253\226\345\243\207 \347\266\262\350\252\214\346\220\234\ 345\260\213 Gmail \346\233\264\345\244\232 \342\226\274 \346\227\245\346\233\206 \347\233\270\347\211\207 \346\226\207\344\273\266 \351\226\261\350\256\200\345\ 231\250 \346\233\264\345\244\232 \302\273 \347\231\273\345\205\245\n\n\345\217\2 60\347\201\243 \n\n \n \351\200\262\351\232\216\346\220\234\345\260\213\n \3 44\275\277\347\224\250\345\201\217\345\245\275\n \350\252\236\350\250\200\351\2 01\270\351\240\205 \n\346\220\234\345\260\213\357\274\232 \346\211\200\346\234\ 211\347\266\262\351\240\201 \344\270\255\346\226\207\347\266\262\351\240\201 \ 347\271\201\351\253\224\344\270\255\346\226\207\347\266\262\351\240\201 \345\21 7\260\347\201\243\347\232\204\347\266\262\351\240\201 \n\n\n\345\202\263\347\26 5\261\351\246\226\351\240\201 | iGoogle: \345\217\260\347\201\243\351\246\226\ 351\240\201\n\n\n\345\273\243\345\221\212\346\234\215\345\213\231 - Google \345\ 256\214\345\205\250\346\211\213\345\206\212 - Google.com in English\n\302\251200 8 Google\n\n\346\211\200\346\234\211\347\266\262\351\240\201 \345\234\226\347\21 1\207 \346\226\260\350\201\236 \347\266\262\344\270\212\350\253\226\345\243\207 \347\266\262\350\252\214\346\220\234\345\260\213 Gmail \346\233\264\345\244\232 \342\226\274 \346\227\245\346\233\206 \347\233\270\347\211\207 \346\226\207\344\ 273\266 \351\226\261\350\256\200\345\231\250 \346\233\264\345\244\232 \302\273 \ 347\231\273\345\205\245\n\n\345\217\260\347\201\243 \n\n \n \351\200\262\351\ 232\216\346\220\234\345\260\213\n \344\275\277\347\224\250\345\201\217\345\245\ 275\n \350\252\236\350\250\200\351\201\270\351\240\205 \n\346\220\234\345\260\2 13\357\274\232 \346\211\200\346\234\211\347\266\262\351\240\201 \344\270\255\3 46\226\207\347\266\262\351\240\201 \347\271\201\351\253\224\344\270\255\346\226 \207\347\266\262\351\240\201 \345\217\260\347\201\243\347\232\204\347\266\262\3 51\240\201 \n\n\n\345\202\263\347\265\261\351\246\226\351\240\201 | iGoogle: \345\217\260\347\201\243\351\246\226\351\240\201\n\n\n\345\273\243\345\221\212\3 46\234\215\345\213\231 - Google \345\256\214\345\205\250\346\211\213\345\206\212 - Google.com in English\n\302\2512008 Google\n\n\0\250\346\211\213\345\206\212 - Google.com in English\r\n\302\2512008 Google\r\n\r\n"\0 CUR = 1167 LEN = 1168 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Best Regards, Sheng
Download (untitled) / with headers
text/plain 1.3k
On Fri Feb 22 23:23:41 2008, yesheng@tsinghua.org.cn wrote: Show quoted text
> Dear CPAN group, > > There is an important issue found in Perl Tk-804.028 Tk::Text widget. > > Copy and paste many lines of Chinese Charactors to Tk::Text window, > will cause > application crash, its almost 100% reproducable. > > Following is the result of copying and pasting all text of > www.google.cn to > notepad 3 times, and pasting all of them to Tk:Text window. >
I tried to reproduce the crash in various ways, but failed. I tried * FreeBSD 6.2 + perl 5.8.8 + Tk 804.028: copy the contents of www.google.cn to kate, clicked on "select all" and "copy" and did ctrl-v in the "Basic editable text" window of the "widget" demonstration. I tried also to save the contents from the dump you provided, load it into kate and then into the text widget, also no crash. * Windows Vista + ActivePerl 5.8.8 + Tk 804.028 (ppm from bribes, I think): copy the contents of www.google.cn and other chinese sites into notepad and then again in the text widget of the "Basic editable text" demonstration. No crash, but sometimes the chinese characters were displayed as binary garbage. Can you give me more information? Maybe it depends on the actual pasted text (can you send me a textfile which may reproduce the problem), or the operating system, or maybe it's another Tk or perl build? Regards, Slaven
Subject: Re:[rt.cpan.org #33529] AutoReply: Bug Report of Tk-804.028 Tk::Text
Date: Fri, 29 Feb 2008 18:17:29 +0800
To: bug-Tk [...] rt.cpan.org
From: yesheng [...] tsinghua.org.cn
Download (untitled) / with headers
text/plain 5.5k
Reply to Slaven: Sorry for late response. Here is the attached text file copy from www.google.cn, 3 times to make a larger size.(33529_sample.txt) And I reproduced it again. My environment is windows XP+sp2(code page is cp936), ActivePerl 5.8.8, Tk: 804.27. Thanks, Sheng http://rt.cpan.org/Ticket/Display.html?id=33529 In your mail: Show quoted text
>From: "Bugs in Tk via RT" <bug-Tk@rt.cpan.org> >Reply-To: bug-Tk@rt.cpan.org >To: yesheng@tsinghua.org.cn >Subject: [rt.cpan.org #33529] AutoReply: Bug Report of Tk-804.028 Tk::Text >Date:Fri, 22 Feb 2008 23:23:42 -0500 > > >Greetings, > >This message has been automatically generated in response to the >creation of a trouble ticket regarding: > "Bug Report of Tk-804.028 Tk::Text", >a summary of which appears below. > >There is no need to reply to this message right now. Your ticket has been >assigned an ID of [rt.cpan.org #33529]. Your ticket is accessible >on the web at: > > http://rt.cpan.org/Ticket/Display.html?id=33529 > >Please include the string: > > [rt.cpan.org #33529] > >in the subject line of all future correspondence about this issue. To do so, >you may reply to this message. > > Thank you, > bug-Tk@rt.cpan.org > >------------------------------------------------------------------------- >Dear CPAN group, > >There is an important issue found in Perl Tk-804.028 Tk::Text widget. > >Copy and paste many lines of Chinese Charactors to Tk::Text window, will cause >application crash, its almost 100% reproducable. > >Following is the result of copying and pasting all text of www.google.cn to >notepad 3 times, and pasting all of them to Tk:Text window. > > >(1) >SV = PV(0x319d508) at 0x319cdac > REFCNT = 1 > FLAGS = (POK,pPOK) > PV = 0x31a48a4 "\346\211\200\346\234\211\347\266\262\351\240\201 \345\234\226\ >347\211\207 \346\226\260\350\201\236 \347\266\262\344\270\212\350\253\226\345\24 >3\207 \347\266\262\350\252\214\346\220\234\345\260\213 Gmail \346\233\264\345\24 >4\232 \342\226\274 \346\227\245\346\233\206 \347\233\270\347\211\207 \346\226\20 >7\344\273\266 \351\226\261\350\256\200\345\231\250 \346\233\264\345\244\232 \302 >\273 \347\231\273\345\205\245\n\n\345\217\260\347\201\243 \n\n \n \351\200\26 >2\351\232\216\346\220\234\345\260\213\n \344\275\277\347\224\250\345\201\217\34 >5\245\275\n \350\252\236\350\250\200\351\201\270\351\240\205 \n\346\220\234\345 >\260\213\357\274\232 \346\211\200\346\234\211\347\266\262\351\240\201 \344\270 >\255\346\226\207\347\266\262\351\240\201 \347\271\201\351\253\224\344\270\255\3 >46\226\207\347\266\262\351\240\201 \345\217\260\347\201\243\347\232\204\347\266 >\262\351\240\201 \n\n\n\345\202\263\347\265\261\351\246\226\351\240\201 | iGo >ogle: \345\217\260\347\201\243\351\246\226\351\240\201\n\n\n\345\273\243\345\221 >\212\346\234\215\345\213\231 - Google \345\256\214\345\205\250\346\211\213\345\2 >06\212 - Google.com in English\n\302\2512008 Google\n\n\346\211\200\346\234\211\ >347\266\262\351\240\201 \345\234\226\347\211\207 \346\226\260\350\201\236 \347\2 >66\262\344\270\212\350\253\226\345\243\207 \347\266\262\350\252\214\346\220\234\ >345\260\213 Gmail \346\233\264\345\244\232 \342\226\274 \346\227\245\346\233\206 > \347\233\270\347\211\207 \346\226\207\344\273\266 \351\226\261\350\256\200\345\ >231\250 \346\233\264\345\244\232 \302\273 \347\231\273\345\205\245\n\n\345\217\2 >60\347\201\243 \n\n \n \351\200\262\351\232\216\346\220\234\345\260\213\n \3 >44\275\277\347\224\250\345\201\217\345\245\275\n \350\252\236\350\250\200\351\2 >01\270\351\240\205 \n\346\220\234\345\260\213\357\274\232 \346\211\200\346\234\ >211\347\266\262\351\240\201 \344\270\255\346\226\207\347\266\262\351\240\201 \ >347\271\201\351\253\224\344\270\255\346\226\207\347\266\262\351\240\201 \345\21 >7\260\347\201\243\347\232\204\347\266\262\351\240\201 \n\n\n\345\202\263\347\26 >5\261\351\246\226\351\240\201 | iGoogle: \345\217\260\347\201\243\351\246\226\ >351\240\201\n\n\n\345\273\243\345\221\212\346\234\215\345\213\231 - Google \345\ >256\214\345\205\250\346\211\213\345\206\212 - Google.com in English\n\302\251200 >8 Google\n\n\346\211\200\346\234\211\347\266\262\351\240\201 \345\234\226\347\21 >1\207 \346\226\260\350\201\236 \347\266\262\344\270\212\350\253\226\345\243\207 >\347\266\262\350\252\214\346\220\234\345\260\213 Gmail \346\233\264\345\244\232 >\342\226\274 \346\227\245\346\233\206 \347\233\270\347\211\207 \346\226\207\344\ >273\266 \351\226\261\350\256\200\345\231\250 \346\233\264\345\244\232 \302\273 \ >347\231\273\345\205\245\n\n\345\217\260\347\201\243 \n\n \n \351\200\262\351\ >232\216\346\220\234\345\260\213\n \344\275\277\347\224\250\345\201\217\345\245\ >275\n \350\252\236\350\250\200\351\201\270\351\240\205 \n\346\220\234\345\260\2 >13\357\274\232 \346\211\200\346\234\211\347\266\262\351\240\201 \344\270\255\3 >46\226\207\347\266\262\351\240\201 \347\271\201\351\253\224\344\270\255\346\226 >\207\347\266\262\351\240\201 \345\217\260\347\201\243\347\232\204\347\266\262\3 >51\240\201 \n\n\n\345\202\263\347\265\261\351\246\226\351\240\201 | iGoogle: >\345\217\260\347\201\243\351\246\226\351\240\201\n\n\n\345\273\243\345\221\212\3 >46\234\215\345\213\231 - Google \345\256\214\345\205\250\346\211\213\345\206\212 > - Google.com in English\n\302\2512008 Google\n\n\0\250\346\211\213\345\206\212 >- Google.com in English\r\n\302\2512008 Google\r\n\r\n"\0 > CUR = 1167 > LEN = 1168 > >This application has requested the Runtime to terminate it in an unusual way. >Please contact the application's support team for more information. > >Best Regards, >Sheng > > > >

Message body is not shown because sender requested not to inline it.

Subject: Re:[rt.cpan.org #33529] AutoReply: Bug Report of Tk-804.028 Tk::Text
Date: Sun, 31 Aug 2008 22:09:11 +0800
To: bug-Tk [...] rt.cpan.org
From: yesheng [...] tsinghua.org.cn
Download (untitled) / with headers
text/plain 274b
update to this issue: I found when pasting many Chinese text to a Tk::Entry widget, the application will also crash, and same error information prompted. So I think it's may be an issue about converting Window clipboard data into Perl/Tk internal octet. Regards, Sheng
On Fri Feb 29 05:39:59 2008, yesheng@tsinghua.org.cn wrote: Show quoted text
> Reply to Slaven: > > Sorry for late response. > Here is the attached text file copy from www.google.cn, 3 times to > make a larger > size.(33529_sample.txt) > > And I reproduced it again. > My environment is windows XP+sp2(code page is cp936), ActivePerl > 5.8.8, Tk: > 804.27.
^^^^^^ Does the error also appear with Tk 804.028? The old 027 had issues with the selections, and these known issues were fixed in 028. Regards, Slaven Show quoted text
> Thanks, > Sheng > > http://rt.cpan.org/Ticket/Display.html?id=33529 > > > > In your mail:
> >From: "Bugs in Tk via RT" <bug-Tk@rt.cpan.org> > >Reply-To: bug-Tk@rt.cpan.org > >To: yesheng@tsinghua.org.cn > >Subject: [rt.cpan.org #33529] AutoReply: Bug Report of Tk-804.028
> Tk::Text
> >Date:Fri, 22 Feb 2008 23:23:42 -0500 > > > > > >Greetings, > > > >This message has been automatically generated in response to the > >creation of a trouble ticket regarding: > > "Bug Report of Tk-804.028 Tk::Text", > >a summary of which appears below. > > > >There is no need to reply to this message right now. Your ticket has
> been
> >assigned an ID of [rt.cpan.org #33529]. Your ticket is accessible > >on the web at: > > > > http://rt.cpan.org/Ticket/Display.html?id=33529 > > > >Please include the string: > > > > [rt.cpan.org #33529] > > > >in the subject line of all future correspondence about this issue. To
> do so,
> >you may reply to this message. > > > > Thank you, > > bug-Tk@rt.cpan.org > > > >------------------------------------------------------------------------- > >Dear CPAN group, > > > >There is an important issue found in Perl Tk-804.028 Tk::Text widget. > > > >Copy and paste many lines of Chinese Charactors to Tk::Text window,
> will cause
> >application crash, its almost 100% reproducable. > > > >Following is the result of copying and pasting all text of
> www.google.cn to
> >notepad 3 times, and pasting all of them to Tk:Text window. > > > > > >(1) > >SV = PV(0x319d508) at 0x319cdac > > REFCNT = 1 > > FLAGS = (POK,pPOK) > > PV = 0x31a48a4 "\346\211\200\346\234\211\347\266\262\351\240\201
> \345\234\226\
> >347\211\207 \346\226\260\350\201\236
> \347\266\262\344\270\212\350\253\226\345\24
> >3\207 \347\266\262\350\252\214\346\220\234\345\260\213 Gmail
> \346\233\264\345\24
> >4\232 \342\226\274 \346\227\245\346\233\206 \347\233\270\347\211\207
> \346\226\20
> >7\344\273\266 \351\226\261\350\256\200\345\231\250
> \346\233\264\345\244\232 \302
> >\273 \347\231\273\345\205\245\n\n\345\217\260\347\201\243 \n\n \n
> \351\200\26
> >2\351\232\216\346\220\234\345\260\213\n
> \344\275\277\347\224\250\345\201\217\34
> >5\245\275\n \350\252\236\350\250\200\351\201\270\351\240\205
> \n\346\220\234\345
> >\260\213\357\274\232
> \346\211\200\346\234\211\347\266\262\351\240\201 \344\270
> >\255\346\226\207\347\266\262\351\240\201
> \347\271\201\351\253\224\344\270\255\3
> >46\226\207\347\266\262\351\240\201
> \345\217\260\347\201\243\347\232\204\347\266
> >\262\351\240\201
> \n\n\n\345\202\263\347\265\261\351\246\226\351\240\201 | iGo
> >ogle:
> \345\217\260\347\201\243\351\246\226\351\240\201\n\n\n\345\273\243\345\221
> >\212\346\234\215\345\213\231 - Google
> \345\256\214\345\205\250\346\211\213\345\2
> >06\212 - Google.com in English\n\302\2512008
> Google\n\n\346\211\200\346\234\211\
> >347\266\262\351\240\201 \345\234\226\347\211\207
> \346\226\260\350\201\236 \347\2
> >66\262\344\270\212\350\253\226\345\243\207
> \347\266\262\350\252\214\346\220\234\
> >345\260\213 Gmail \346\233\264\345\244\232 \342\226\274
> \346\227\245\346\233\206
> > \347\233\270\347\211\207 \346\226\207\344\273\266
> \351\226\261\350\256\200\345\
> >231\250 \346\233\264\345\244\232 \302\273
> \347\231\273\345\205\245\n\n\345\217\2
> >60\347\201\243 \n\n \n
> \351\200\262\351\232\216\346\220\234\345\260\213\n \3
> >44\275\277\347\224\250\345\201\217\345\245\275\n
> \350\252\236\350\250\200\351\2
> >01\270\351\240\205 \n\346\220\234\345\260\213\357\274\232
> \346\211\200\346\234\
> >211\347\266\262\351\240\201
> \344\270\255\346\226\207\347\266\262\351\240\201 \
> >347\271\201\351\253\224\344\270\255\346\226\207\347\266\262\351\240\201
> \345\21
> >7\260\347\201\243\347\232\204\347\266\262\351\240\201
> \n\n\n\345\202\263\347\26
> >5\261\351\246\226\351\240\201 | iGoogle:
> \345\217\260\347\201\243\351\246\226\
> >351\240\201\n\n\n\345\273\243\345\221\212\346\234\215\345\213\231 -
> Google \345\
> >256\214\345\205\250\346\211\213\345\206\212 - Google.com in
> English\n\302\251200
> >8 Google\n\n\346\211\200\346\234\211\347\266\262\351\240\201
> \345\234\226\347\21
> >1\207 \346\226\260\350\201\236
> \347\266\262\344\270\212\350\253\226\345\243\207
> >\347\266\262\350\252\214\346\220\234\345\260\213 Gmail
> \346\233\264\345\244\232
> >\342\226\274 \346\227\245\346\233\206 \347\233\270\347\211\207
> \346\226\207\344\
> >273\266 \351\226\261\350\256\200\345\231\250 \346\233\264\345\244\232
> \302\273 \
> >347\231\273\345\205\245\n\n\345\217\260\347\201\243 \n\n \n
> \351\200\262\351\
> >232\216\346\220\234\345\260\213\n
> \344\275\277\347\224\250\345\201\217\345\245\
> >275\n \350\252\236\350\250\200\351\201\270\351\240\205
> \n\346\220\234\345\260\2
> >13\357\274\232 \346\211\200\346\234\211\347\266\262\351\240\201
> \344\270\255\3
> >46\226\207\347\266\262\351\240\201
> \347\271\201\351\253\224\344\270\255\346\226
> >\207\347\266\262\351\240\201
> \345\217\260\347\201\243\347\232\204\347\266\262\3
> >51\240\201 \n\n\n\345\202\263\347\265\261\351\246\226\351\240\201 |
> iGoogle: > >\345\217\260\347\201\243\351\246\226\351\240\201\n\n\n\345\273\243\345\221\212\3
> >46\234\215\345\213\231 - Google
> \345\256\214\345\205\250\346\211\213\345\206\212
> > - Google.com in English\n\302\2512008
> Google\n\n\0\250\346\211\213\345\206\212
> >- Google.com in English\r\n\302\2512008 Google\r\n\r\n"\0 > > CUR = 1167 > > LEN = 1168 > > > >This application has requested the Runtime to terminate it in an
> unusual way.
> >Please contact the application's support team for more information. > > > >Best Regards, > >Sheng > > > > > > > >
> >
Subject: Re:[rt.cpan.org #33529] AutoReply: Bug Report of Tk-804.028 Tk::Text
Date: Tue, 16 Sep 2008 16:19:31 +0800
To: bug-Tk [...] rt.cpan.org
From: yesheng [...] tsinghua.org.cn
Download (untitled) / with headers
text/plain 459b
update to issue #33529. Further test show the crash happen at clipboardGet() function in Tk/Clipboard.pm: $w->SelectionGet('-selection','CLIPBOARD',@_); According to your suggest, I have tried 804.028 against 804.027, there is a difference: * If some text is ok for 804.027, it is also ok for 804.028. * If some text will cause 804.027 crash, it will cause 804.028 show garbage characters. So I guess it is a partially fixed issue. Best Regards, Sheng
Subject: Re: [rt.cpan.org #33529] Bug Report of Tk-804.028 Tk::Text
Date: Fri, 5 Dec 2008 17:25:19 +0800 (CST)
To: bug-Tk [...] rt.cpan.org
From: Tk <issue33529 [...] yahoo.cn>
Download (untitled) / with headers
text/plain 884b
Hi Slaven, Now I have found a very important clue for the issue! Whether the Chinese(or other non-ascii chars) text is shown correctly only depends on the Number of <newline> in the text. My test show that if a text contain 4 or 5 lines, or 9/10 lines, or 14/15 lines, or 19/20 lines, or 24/25 lines, or 29/30 lines The text pasted to Tk804.028 edit window will show garbage characters! So my conclusion is: If a text contain 5n-1 or 5n (n=1,2,3,...) number of <newlines>, all the Chinese characters pasted in edit window will be shown incorrectly, but the ASCII characters are shown correctly. Hope above info give help for your debugging. I am looking forward for the solution or workaround soon. Many Thanks, Sheng Show quoted text
___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #33529] Bug Report of Tk-804.028 Tk::Text
Date: Fri, 5 Dec 2008 09:26:06 -0800
To: "issue33529 [...] yahoo.cn via RT" <bug-Tk [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
Download (untitled) / with headers
text/plain 640b
On Fri, Dec 05, 2008 at 04:25:42AM -0500, issue33529@yahoo.cn via RT wrote: Show quoted text
> Whether the Chinese(or other non-ascii chars) text is shown correctly only depends on the Number of <newline> in the text. > > My test show that if a text contain 4 or 5 lines, > or 9/10 lines, > or 14/15 lines, > or 19/20 lines, > or 24/25 lines, > or 29/30 lines > > The text pasted to Tk804.028 edit window will show garbage characters!
Just some random questions: Always garbage, or only for some chars? What is the encoding of your clipboard? inspecting the binary representation (2 bytes) of your chars, do they contain 0x0A? Thanks, Ilyy
Subject: Re: [rt.cpan.org #33529] Bug Report of Tk-804.028 Tk::Text
Date: Sat, 6 Dec 2008 23:06:19 +0800 (CST)
To: bug-Tk [...] rt.cpan.org
From: Tk <issue33529 [...] yahoo.cn>
Download (untitled) / with headers
text/plain 1.4k
Hi, following is my answers, please check: * Always garbage for whatever and how many Chinese chars, as long as total newline numbers are 4,5; 9,10;... * I am sure my clipboard use 'gbk' encode. * No 0x0A in text, it do not depend on special characters.   BTW, Now I found a new rule: ======================== If <newline> number is 4,9, 14,19, 24,29,... (rule a) when the text is ended by ChineseChar+<newline>,  it will show garbage (rule b) in other case no garbage.   If <newline> number is 5,10, 15,20, 25,30,... (rule c) when the text is ended by ChineseChar+<newline> or ChineseChar+AsciiChar+<newline>,  it will show garbage (rule d) in other case no garbage. ======================== Following is text examples(<nl> means newline: 0x0A): (1) following will show garbage(rule a) 1<nl> 2<nl> 3<nl> 好<nl> (2) folloing will not show garbage(because newline number is 3) 1<nl> 2<nl> 3<nl> 好 (3) following will not show garbage(rule b) 1<nl> 2<nl> 3<nl> 好4<nl> (4) will not show garbage(rule d) 1<nl> 2<nl> 3<nl> 4<nl> 好05<nl> (5)will show garbage(rule c) 1<nl> 2<nl> 3<nl> 4<nl 好<nl> (6)will show garbage(rule c) 1<nl> 2<nl> 3<nl> 4<nl 好5<nl> (7)will show garbage(rule c) 1<nl> 2<nl> 3<nl> 4<nl> 0好5<nl> If I replace 好 with any other Chinese character, the same result happen. It should happen at $w->SelectionGet('-selection','CLIPBOARD',@_); Show quoted text
___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.