Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Tooltips can't work correctly after Chinese text
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

netsesame
Junior Member

21 Posts

Posted - Aug 22 2011 :  1:47:23 PM  Show Profile  Reply with Quote
V10.6.1854
VS 2010, c++

////test code
m_curreditor = el.find_first("richtext");
m_imagedlg.xcall("showpaste"); //+?+?+?+?+?-?+?+?(Chinese comment)
//m_imagedlg.xcall("+?+?+?+?+?+?-+++"); // Chinese params

m_curreditor.xcall("doPaste"); // hover on this code
////test code end

Mouse hover on the first function find_first(), the tooltip whill show the correct info.
However, if these exists some Chinese text(params or comment) before, for example, hover on the last function xcall(...), none tooltip popup.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 23 2011 :  2:50:59 PM  Show Profile  Reply with Quote
I am seeing the same effect here:

case=60776
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 04 2011 :  11:21:09 PM  Show Profile  Reply with Quote
There are actually two issues here, one with multibyte or Unicode characters (case=60870) and one with comments appearing both before and after a function definition (case=60776). Both cases are fixed in build 1859.

Whole Tomato Software, Inc.
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Oct 07 2011 :  09:28:48 AM  Show Profile  Reply with Quote
I got and installed the lastest 1859...

However, the question is still there, in fact, it seems that it has not been resolved at all. I don't know what's the reason for me. Is any configuration needed?
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Oct 07 2011 :  09:57:55 AM  Show Profile  Reply with Quote
I creat a test .H file for download:

http://www.shikongzi.com/uploadfile/Header1.h

this H file include a class C1, and two global function, both of them use Chinese comment. the file encoding is GBK, even changes to UTF-8, no chance happened.

Edited by - netsesame on Oct 07 2011 10:01:58 AM
Go to Top of Page

cheray
New Member

2 Posts

Posted - Oct 07 2011 :  10:33:09 PM  Show Profile  Reply with Quote
I have the same problem. If there exists any Chinese characters, no matter they're in comments or string literal to output, the tooltip behind it are all at the wrong place. If the Chinese characters are replaced with English, it's OK.
The lastest 1859 didn't solve this problem. Maybe there's something wrong for VA_X to parse the unicode multibyte characters in VS2010.
Go to Top of Page

zxf8692
New Member

6 Posts

Posted - Oct 08 2011 :  01:20:51 AM  Show Profile  Reply with Quote
The same problem is also affect va view. I have reprot this problem to vax support, however, they can't reproduce this bug, it's frustrating.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 08 2011 :  09:04:02 AM  Show Profile  Reply with Quote
netsesame: thank you for the file. However, when open it I get seemingly invalid characters in it. The encoding of the file is "Central European (Windows) - Codepage 1250"



zxf8692: I have replied your email. Unfortunately there are problems that are not obvious to reproduce, sometimes because a little, subtle difference causing a very different behavior.
Go to Top of Page

zxf8692
New Member

6 Posts

Posted - Oct 08 2011 :  09:18:17 AM  Show Profile  Reply with Quote
I have reply you email and attach the test file, please check it. I expect the file will give you a diffence present.tks.
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Oct 08 2011 :  09:32:46 AM  Show Profile  Reply with Quote
To accord:

Now I updated the H file to UTF-8 encoding. You can download and try agagin.
Thanks.

http://www.shikongzi.com/uploadfile/Header1.h

Edited by - netsesame on Oct 08 2011 09:33:48 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 10 2011 :  09:16:14 AM  Show Profile  Reply with Quote
zxf8692: I was able to repro your problem and replied by mail. Thank you for your patience.

netsesame: Thank you for uploading the file again. I was able to open the other version as well if I manually open with then encoding "Chinese Simplified (GB2312)" I don't work with unicode file often The automatic detection seem to fail for this file.

However, I wasn't able to reproduce your problem, unfortunately (see screenshot). I have been trying with Windows 7 and Windows XP (both with English and Chinese encoding for non-unicode programs).

- Can you please take a screenshot of what you see?
- Which version of Windows are you using? Is it English or localized?
- Which IDE are you using?
- If using Windows XP: what language have you set for non-unicode programs? (Control Panel -> Regional and Language Options -> Advanced tab)
- Which languages have you set on the first tab of the same dialog?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 10 2011 :  09:31:02 AM  Show Profile  Reply with Quote
cheray: can you also please take a screenshot of what you are seeing and post here? Thanks.
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Oct 10 2011 :  10:40:42 AM  Show Profile  Reply with Quote
- Can you please take a screenshot of what you see?

From the screenshot above, you can see that how tooltip works. That is, either the tooltip offset a distance, or give a wrong text, or even nothing for you.

- Which version of Windows are you using? Is it English or localized?
Win 7, Chinese.

- Which IDE are you using?
Visual studio 2010, English version.

- If using Windows XP: what language have you set for non-unicode programs? (Control Panel -> Regional and Language Options -> Advanced tab)
- Which languages have you set on the first tab of the same dialog?
Chinese.

Edited by - netsesame on Oct 10 2011 10:56:51 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 11 2011 :  6:46:42 PM  Show Profile  Reply with Quote
Thank you for the screenshot of all tooltips. I get the correct results using Win 7, VS2010 and 1859.
- What font and font size are you using? It may depend on the selected font or font size.
- What is the state of these options?
Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Auto Quick Info
Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Disable IntelliSense
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Oct 11 2011 :  10:29:11 PM  Show Profile  Reply with Quote
So strange.
- What font and font size are you using? It may depend on the selected font or font size.
Nothing to do with the font and font size, I switch several fonts, which include console, courier new, YaHei, song, several size. Neither help.
- What is the state of these options?
Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Auto Quick Info
False
Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Disable IntelliSense
True
Go to Top of Page

cheray
New Member

2 Posts

Posted - Oct 15 2011 :  03:46:12 AM  Show Profile  Reply with Quote



When I'm hovering the mouse over the function dump, the arrow is on the line above, pointing to the function AssertValid(), the tooltip is also that of AssertValid().
I'm using VS2010 Chinese version, win7 Chinese version, coding of the editer is GB2312. It's noting to do with neither the font of the editor nor the coding format cause I've tried several times.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Oct 21 2011 :  4:14:09 PM  Show Profile  Reply with Quote
Apologies for the slow reply.

cheray would you be able to send me this test file, as a zip file please? I can then use the file you are using here to try and reproduce this problem.

I have a test file here with Chinese characters in it, and the tooltip and refactoring menu icon are both showing in the correct place for me, when hovering over a function call after Chinese characters in comments.

zen is the art of being at one with the two'ness
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Oct 22 2011 :  08:40:05 AM  Show Profile  Reply with Quote
To feline,

The only difference between us maybe the different language of our OS. Cheray and I both use the Win7 Chinese version OS.
We all report the same problem, my VS2010 is English, Cheray's is Chinese. It shows that the question has nothing to do with the VS version.

So, if you should think about the reason of the affect of OS language?
Thanks.

Edited by - netsesame on Oct 22 2011 08:44:04 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Oct 24 2011 :  1:00:16 PM  Show Profile  Reply with Quote
Going back to the start of this thread, I have downloaded the test file "Header1.h" that you kindly uploaded. Thank you for this.

Working on Windows 7 English 32bit, with VS2010 English, I have added this file to a C++ solution.

When I open this header file the Chinese characters in the comments are displayed correctly, but they are not displayed correctly in the tooltips:



I then used the Windows start menu to load "Region and Language", and set:

Region and Language dialog -> Administrative -> Change system locale... -> Current system locale = Chinese (Simplified, PRC)

This is the language used for displaying text in programs that do not support Unicode. After doing this and rebooting my machine the tooltips show the comments correctly:



Are you able to reproduce problems in this test header file? If so, what am I supposed to be doing / testing in this file?

zen is the art of being at one with the two'ness
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Nov 20 2011 :  8:55:55 PM  Show Profile  Reply with Quote
So regret the issue has not been resolved yet.

I tried to switch my Win7's language from Chinese to English(US), then VS2010 will remind me to change the file encoding to Unicode(UTF-8), then Tomato will work correctly.

However, many installed application using Chinese menu will be malformed, so I changed back. The same UTF-8 encoding file, Tomato return to it's wrong state like above.

Help me.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Nov 21 2011 :  6:32:41 PM  Show Profile  Reply with Quote
netsesame, where in Windows are you changing the OS language? Are you just changing:

Region and Language -> Administrative tab -> Change system locale... -> Current system locale:

or are you changing something else?

zen is the art of being at one with the two'ness
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Nov 22 2011 :  02:18:25 AM  Show Profile  Reply with Quote
to feline:

yes, I just change my current system locale from Chinese to English(US), then reboot, then the Tomato will work correctly.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Nov 22 2011 :  4:35:50 PM  Show Profile  Reply with Quote
I am using the following setting in Windows 7:



When this is set to "Chinese (Simplified, PRC)" then the tooltips show the Chinese characters correctly for me. This is the expected, normal behaviour.

Can you confirm this is the setting you are changing?

zen is the art of being at one with the two'ness
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Nov 23 2011 :  07:39:55 AM  Show Profile  Reply with Quote


My OS is Chinese, so the none Unicode language default is set to Chinese also. In this settings the Tomato works not correctly.

If I change the none Unicode language to English(US), the tomato works correct. However, many other applications using Chinese menus can't work.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Dec 02 2011 :  8:29:44 PM  Show Profile  Reply with Quote
Sorry for the slow reply, I have now set up a Windows 7 Ultimate 64bit test machine with VS2010. This is an English install, but I then installed the Chinese (Simplified) language pack for Windows 7, which has changed Windows 7 into Chinese.

I still cannot reproduce this problem. The tool tips are displaying the comments correctly for me. This is my current setting for encoding:



I used google translate to find out what "English (United kingdom)" should look like, and then looked for this in the dialog listbox. This is my google output, in case I have mis-read it:



I am wondering if there is something about the file encoding, or possibly the IDE settings that is a factor here.

If you have the time, can you make a small default test project that shows this tooltip problem, and then send me the project, along with your VA and IDE settings in a zip file please? I can then try the same project as you, with the same settings, and see if I can reproduce this problem.

You can export your VA and IDE settings via:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

Please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

zen is the art of being at one with the two'ness
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Dec 02 2011 :  9:36:23 PM  Show Profile  Reply with Quote
I've send you the setting files for both VA and IDE.
Thanks.
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Dec 02 2011 :  9:41:39 PM  Show Profile  Reply with Quote
Adding test project in the same package, send you a new post.

thanks.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Dec 05 2011 :  11:57:18 PM  Show Profile  Reply with Quote
Thank you for the test solution, this has helped. I have replied via email to you about this.

I am also seeing a problem where the VA underlining for spelling errors is to long, when Chinese is being underlined:

case=63166

zen is the art of being at one with the two'ness

Edited by - feline on Dec 06 2011 12:08:40 AM
Go to Top of Page

netsesame
Junior Member

21 Posts

Posted - Dec 06 2011 :  12:46:05 AM  Show Profile  Reply with Quote
thanks a lot.

The new build sure resolves my issue.
It's great.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Dec 06 2011 :  1:55:37 PM  Show Profile  Reply with Quote
Thank you for the update, I am very pleased to have finally gotten to the bottom of this problem, and to see it fixed

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Dec 16 2011 :  2:15:27 PM  Show Profile  Reply with Quote
case=63166 is fixed in build 1862
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000