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
 1638: All colors of rainbow in plain text
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hexagonal
Senior Member

35 Posts

Posted - May 08 2008 :  1:29:09 PM  Show Profile
Plain russian text looks this way in 1635:


Edited by - Hexagonal on May 21 2008 07:01:27 AM

sean
Whole Tomato Software

USA
2817 Posts

Posted - May 08 2008 :  1:58:40 PM  Show Profile
Is that a comment or a string? Or just text in a source file with no source code?
Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - May 16 2008 :  03:46:00 AM  Show Profile
This is text in a source file with no source code
(I'm writing a documentation which contains many pieces of code, so I want syntax highlighting).

Anyway, previous version of VA works normally, this feature was introduced in 1635.

In 1626 colors are normal, but it has other bug: at least under Vista 32-bit and VS 2008 it displays random characters when typing.
It looks like already typed characters change when typing new characters (for expample, spaces change into random letters, or letter to digit '2'). This is pure display bug, file content is normal when saving.

Maybe this may help someway: russian letters in windows-1251 encoding have codes higher than 0x80, in range 0x80..0xFF. By default, in VC 'char' type is signed, so they are interpreted as negative numbers.

Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - May 16 2008 :  04:01:55 AM  Show Profile
Here is file (for example, test.cpp):

-----------------------------------------------
+?+?+?+?+?+?+?+?+?+?+?+?+?+?+?+?+?+? +?+?+?+?+?+?+? +?+?+?+++?+?+?+?+?++ +?+?+?+?+?+?+?
+?+?+?+?+?+?+?+?+?+? +?+?+?+?++ +?+?+?+?+?+?+? +?+? +?+?+?+?+?+? +?+?+?+?+?+++?+?+?++ +?+?+?+?+?+?+?+?+?+?+?+?+?
+? +?+?+?+?+?+?.

+?+?+? +++?+?+? +?+?+?+?+?+?+?+?+?+?+?+?+?+?++ +?+?+?+?+?+?+?+?+?+?+?+?+? +?+?+?+?+?+?+?+?+? +?+?+?+?+?+?+?+?+++?+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+?+?+?+?++ +?+?+?+?+?+?+? +?+? +?+?+?+?+?+?+? +++?+?+?+? +++?+?+?+?+?+?+?+?.
+?+?+? +?+?+?+?+?+?+?+?+? +?+?+?+++?+?+?+?, +?+?+? +? +?+?+?+?+? +?+++?+?+?+?+++++?+?++ +?+?+?+?+?+?+?+?+?+? +?+? +?+?+++? X +? Y.
-----------------------------------------------
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18940 Posts

Posted - May 16 2008 :  09:20:34 AM  Show Profile
Unfortunately I cannot get Russian text from your forum post. Can you please send me a sample file, as a zip file, 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. Hopefully this way the file will reach me correctly, and I will be able to see the Russian characters when I open it.

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

Hexagonal
Senior Member

35 Posts

Posted - May 19 2008 :  07:28:38 AM  Show Profile
I've sent it.

Edited by - Hexagonal on May 19 2008 07:29:34 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18940 Posts

Posted - May 19 2008 :  10:39:52 AM  Show Profile
I have the file, thank you for this. Do you see this colouring problem when you open this file on its own? Or do you only see this problem when you have a solution open?

Using VS2008 and VA 1638 with the IDE font set to "Courier New" I am seeing this:


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

Hexagonal
Senior Member

35 Posts

Posted - May 19 2008 :  2:31:26 PM  Show Profile
Win XP, VS 2008, Courier New, solution closed, rebuilt symbol databases:



Now I will check locale settings.
Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - May 19 2008 :  2:45:57 PM  Show Profile
Hmm... when I changed (WinXP) "Control Panel -> Regional and Language options -> Advanced -> Language for non-Unicode programs" from Russian back to English (United States), I was unable to get correct display encoding in VS 2008 at all. Didn't think VS 2008 is not-Unicode program...

The only regional option that matters is the one mentioned above.
When it's set to "English", abracadabra is displayed (not a Visual Assist issue), when it's set to "Russian" this coloring appears.

Forgot to say (maybe obvious): turning off syntax highlighting in VA solves the problem, but how can we live without VA syntax highlighting...

Edited by - Hexagonal on May 19 2008 2:55:42 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18940 Posts

Posted - May 20 2008 :  2:09:07 PM  Show Profile
Can you try setting "Language for non-Unicode programs" to English please, and then after the reboot load VS2008. Then follow the following steps.

* use CTRL-O to show the "Open File" dialog
* select the test file you sent me but DO NOT OPEN IT
* press the DOWN arrow at the right hand end of the "Open" button
* select "Open With..."
* select "C++ Course Code Editor (with encoding)"
* when the "Encoding" dialog appears select the encoding "Cyrillic (Windows) - Codepage 1251"

This is what I did here to open this file in VS2008, and this is where the screen shot came from. I am wondering what you see when you do this.

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

Hexagonal
Senior Member

35 Posts

Posted - May 21 2008 :  06:27:24 AM  Show Profile
Followed your instructions exactly, encoding is now correct, but result is the same:



System locale was set to English (US), XP Eng and Vista Eng behave identically, VS 2008 (Version 9.0.21022.8 RTM), VA 1638 and 1635 behave identically, solution closed, file was opened with 1251 encoding.

Maybe VA settings do matter? I've sent it via mentioned above form.

Edited by - Hexagonal on May 21 2008 06:30:36 AM
Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - May 21 2008 :  06:49:05 AM  Show Profile
Maybe this gives some hint...
Even your picture is not perfect:

Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - May 21 2008 :  07:00:41 AM  Show Profile
Hmm... this may be difference in color scheme.
Red (my case) -> Gray (your case)
Magenta (mine) -> Red (yours)
Black and blue (mine) -> Black (yours)

Anyway, I've uploaded my VA settings .reg file
Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - May 21 2008 :  08:08:10 AM  Show Profile
Yes! Problem is captured.
The matter is not VA color settings, but VS color settings.

To reproduce the problem go to the
Tools -> Options -> Fonts & Colors -> Display Items
and set "Operator" color to any color except black.
In my case it was set to "blue".
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18940 Posts

Posted - May 21 2008 :  11:28:24 AM  Show Profile
As you found operator colour was the key step. Now I have changed this I am seeing the same problem, thank you for your help:

case=16927

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

Hexagonal
Senior Member

35 Posts

Posted - May 26 2008 :  09:58:09 AM  Show Profile
thank you too!
waiting for a fix...

Edited by - Hexagonal on May 26 2008 09:59:16 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18940 Posts

Posted - May 26 2008 :  11:48:32 AM  Show Profile
This has been fixed internally, and the fix should show up in the next build, which is expected fairly soon.

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

kevinsikes
Tomato Guru

USA
271 Posts

Posted - May 27 2008 :  01:50:34 AM  Show Profile
case=16927 is fixed in build 1640

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - May 28 2008 :  06:28:56 AM  Show Profile
Hooray! Thank you!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000