http://bugs.winehq.org/show_bug.cgi?id=30245
Bug #: 30245 Summary: Copy Chinese web page content, and paste into the notepad or word will appear garbled. Product: Wine Version: 1.4-rc2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: zhchengsmile@gmail.com Classification: Unclassified
Copy Chinese web page content, and paste into the notepad or word will appear garbled.
http://bugs.winehq.org/show_bug.cgi?id=30245
--- Comment #1 from Austin English austinenglish@gmail.com 2012-03-23 13:59:46 CDT --- What's your locale? Can you type in Chinese in notepad?
http://bugs.winehq.org/show_bug.cgi?id=30245
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
--- Comment #2 from Qian Hong fracting@gmail.com 2012-03-25 04:13:20 CDT --- Hello zhchengsmile,
Thanks for reporting a bug, also next time please provide more information, read http://wiki.winehq.org/Bugs to learn how to report a bug better :)
Austin, I can confirm this issue:
1. Open a Chinese web site with Chrome ( I use wine bugzilla for testing) 2. open wine notepad 3. copy some Chinese from Chrome, such as "测试中文乱码, test Chinese" 4. paste to wine notepad
the above string display as "æµè¯ä¸æä¹±ç , test Chinese" in notepad, even when I copy them from notepad they are garbled as well.
* If I use Firefox 11 instead of Chrome in Step 1, then there is no garbled in noteapd * If I use Wine builtin iexplore instead of Chrome in Step 1, then there is no garbled in notepad as well.
BTW, wine notepad use GBK for default saving files when using zh_CN.utf8 locale .
My locale:
locale LANG=zh_CN.UTF-8 LANGUAGE=zh_CN: LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_MESSAGES="zh_CN.UTF-8" LC_PAPER="zh_CN.UTF-8" LC_NAME="zh_CN.UTF-8" LC_ADDRESS="zh_CN.UTF-8" LC_TELEPHONE="zh_CN.UTF-8" LC_MEASUREMENT="zh_CN.UTF-8" LC_IDENTIFICATION="zh_CN.UTF-8" LC_ALL=
Wine version: wine 1.5.0
http://bugs.winehq.org/show_bug.cgi?id=30245
--- Comment #3 from Qian Hong fracting@gmail.com 2012-03-25 04:16:26 CDT ---
the above string display as "æµè¯ä¸æä¹±ç , test Chinese" in notepad, even when I copy them from notepad they are garbled as well.
Sorry for confusing here, I mean:
Even If I copy the garbled string from notepad back to Chrome/Gedit/Firefox or other Linux native input area, they are display as garbled.
http://bugs.winehq.org/show_bug.cgi?id=30245
--- Comment #4 from zhchengsmile@gmail.com 2012-03-25 20:10:03 CDT --- (In reply to comment #1)
What's your locale? Can you type in Chinese in notepad?
locale is zh_CN.utf8 Yes, I can type chinese correctly.
http://bugs.winehq.org/show_bug.cgi?id=30245
--- Comment #5 from zhchengsmile@gmail.com 2012-03-25 20:17:01 CDT --- Well.
I try to debug this issue, and find some clues:
In dlls/winex11drv/clipboard. c:
builtin_formats [] ... {CF_UNICODETEXT, XATOM_COMPOUND_TEXT, X11DRV_CLIPBOARD_ImportCompoundText, X11DRV_CLIPBOARD_ExportString}, ...
Change X11DRV_CLIPBOARD_ImportCompoundText->X11DRV_CLIPBOARD_ImportUTF8
will solve the problem, but I don't know why?
http://bugs.winehq.org/show_bug.cgi?id=30245
--- Comment #6 from zhchengsmile@gmail.com 2012-03-25 20:18:31 CDT --- (In reply to comment #2)
Hello zhchengsmile,
Thanks for reporting a bug, also next time please provide more information, read http://wiki.winehq.org/Bugs to learn how to report a bug better :)
Austin, I can confirm this issue:
- Open a Chinese web site with Chrome ( I use wine bugzilla for testing)
- open wine notepad
- copy some Chinese from Chrome, such as "测试中文乱码, test Chinese"
- paste to wine notepad
the above string display as "æµè¯ä¸æä¹±ç , test Chinese" in notepad, even when I copy them from notepad they are garbled as well.
- If I use Firefox 11 instead of Chrome in Step 1, then there is no garbled in
noteapd
- If I use Wine builtin iexplore instead of Chrome in Step 1, then there is no
garbled in notepad as well.
BTW, wine notepad use GBK for default saving files when using zh_CN.utf8 locale .
My locale:
locale LANG=zh_CN.UTF-8 LANGUAGE=zh_CN: LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_MESSAGES="zh_CN.UTF-8" LC_PAPER="zh_CN.UTF-8" LC_NAME="zh_CN.UTF-8" LC_ADDRESS="zh_CN.UTF-8" LC_TELEPHONE="zh_CN.UTF-8" LC_MEASUREMENT="zh_CN.UTF-8" LC_IDENTIFICATION="zh_CN.UTF-8" LC_ALL=
Wine version: wine 1.5.0
yes i will. Think you for your reply
http://bugs.winehq.org/show_bug.cgi?id=30245
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #7 from Austin English austinenglish@gmail.com 2012-03-26 02:44:56 CDT --- Confirming.
http://bugs.winehq.org/show_bug.cgi?id=30245
lizhenbo litimetal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |litimetal@gmail.com
--- Comment #8 from lizhenbo litimetal@gmail.com 2013-09-18 21:50:41 CDT --- I tested with wine-1.7.1-208-g10251e5 (In reply to comment #2)
Austin, I can confirm this issue:
- Open a Chinese web site with Chrome ( I use wine bugzilla for testing)
- open wine notepad
- copy some Chinese from Chrome, such as "测试中文乱码, test Chinese"
- paste to wine notepad
the above string display as "æµè¯ä¸æä¹±ç , test Chinese" in notepad, even when I copy them from notepad they are garbled as well.
Confirmed. If I copy it to KWrite, everything is ok.
- If I use Firefox 11 instead of Chrome in Step 1, then there is no garbled in
noteapd
Works fine with Firefox 23
- If I use Wine builtin iexplore instead of Chrome in Step 1, then there is no
garbled in notepad as well.
Works Fine
My locale: LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8"
https://bugs.winehq.org/show_bug.cgi?id=30245
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #9 from Austin English austinenglish@gmail.com --- Still in 1.7.37.
https://bugs.winehq.org/show_bug.cgi?id=30245
--- Comment #10 from Jactry Zeng jactry92@gmail.com --- I can't reproduce the issue with Chrome 97.0.4692.99 and Wine wine-7.0-358-g85cb1ff91ed anymore.
And from https://www.winehq.org/pipermail/wine-devel/2021-December/203732.html Alexandre thought that one should be an application bug, though I'm not 100 percent sure they are the same issue.