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
 Non-english chars replaced by 'surround on * /'
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

beef
Senior Member

Poland
42 Posts

Posted - Mar 14 2006 :  10:13:59 AM  Show Profile  Reply with Quote
I've just dowloaded the newest build 1444 (seems to be an unofficial one). When I press / or * with 'surronding' option active, all non-english characters (in comments or strings) are replaced with some strange symbols. Unfortunatelly, I do not have access to any FTP server by now to place screen-shots, I will try to do this later at home.

VA_X.dll file version 10.2.1444.0 built 2006.03.12
Licensed to:
VA X: [email protected] (5-user license) Support ends 2006.07.20
VA.NET 7.1:
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.4.15
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Dodatek Service Pack 2
Single processor

Platform: Win32
Stable Includes:
d:\\!work\\Boost\\include\\boost-1_32;
d:\\!work\\occ\\inc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

Other Includes:

Sasa
Tomato Guru

272 Posts

Posted - Mar 14 2006 :  6:40:01 PM  Show Profile  Reply with Quote
quote:
Unfortunatelly, I do not have access to any FTP server by now to place screen-shots

Try http://www.imageshack.us/

That is what I use to host the pictures.

C++
Visual Studio 2008 Pro
Windows 7 x64
Go to Top of Page

beef
Senior Member

Poland
42 Posts

Posted - Mar 15 2006 :  02:53:19 AM  Show Profile  Reply with Quote
You are right! I forgot about this posibility :) Ok, this is how it looks:
before

and after

I hope it is clear now.

Edited by - beef on Mar 15 2006 02:56:48 AM
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Mar 19 2006 :  6:30:20 PM  Show Profile  Reply with Quote
I am unable to reproduce this using both .NET 2003 and .NET 2005. Does this happen all the time or is it random? Do you have any code example you could post that you know reproduces the issue you are having?

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

beef
Senior Member

Poland
42 Posts

Posted - Mar 20 2006 :  05:02:36 AM  Show Profile  Reply with Quote
It happens all the time. I've create empty c++ win32 console project using vc2003, and add one line with polish characters in _tmain. On my machine it looks exactly like this:

After selecting the line with 'cout' and pressing '/' on the keyboard, the result is just like in my previous post. The problem you may encounter trying to reproduce this, is that my os is localized (polish) and default character set is 'eastern european'. I suspect, that there is probably a wrong locale used for tranforming non-comented text into commented one.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 21 2006 :  5:51:45 PM  Show Profile  Reply with Quote
beef i have just emailed you via the forum. can you reply to that email with the source file you used here attached? i would not know where to start trying to enter Polish characters into a file, so the file gets me started. if that is not enough i will work through setting up the locale in a test system.

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

Cezariusz
Tomato Guru

Poland
244 Posts

Posted - Mar 22 2006 :  02:12:50 AM  Show Profile  Reply with Quote
beef, maybe you have a different font for strings and comments, which do not support Polish characters. Check your IDE options.

Cezariusz Marek
https://midicat.net/
Go to Top of Page

beef
Senior Member

Poland
42 Posts

Posted - Mar 22 2006 :  3:39:06 PM  Show Profile  Reply with Quote
feline: thanks, I will do it tommorow at work. The problem is, that there is the possibility, that you will see garbage instead of polish characters just after opening my file, because of different locale and font settings... Well, we'll see. A temporary solution may be: type ALT+0185 (on the keypad), you should see the character '#261;' (and the question for 1000 point - what do you see on the screen now? :) ). It is a unicode number, so should work everywhere (of course, if it is defined in the font you are using).
Cezariusz: The font settings are ok, I can see polish characters with no problems BEFORE I use the 'surround' option. Additionally, I almost sure, that before build 1442/1444 everything was ok.
Go to Top of Page

beef
Senior Member

Poland
42 Posts

Posted - Mar 22 2006 :  3:42:09 PM  Show Profile  Reply with Quote
Ugh, as averyone can see (me too :), the forum cuts out non-ascii characters. I put it this way: you should see 'the letter "a" with some strange something below".
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 22 2006 :  3:56:29 PM  Show Profile  Reply with Quote
Alt + 0185
this gives me a superscript number 1 on my main machine. it should simply be a case of installing Polish as a locale on a test system, and this should work.

*goes and tries*

it turns out that Polish is not offered under win2k, only under winXP. i will get back to you in a few hours, once i have upgraded a test machine to winXP.

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

beef
Senior Member

Poland
42 Posts

Posted - Mar 22 2006 :  6:17:38 PM  Show Profile  Reply with Quote
Ok. Btw: notice, that 'superscript number one' is the sybmbol the 'polish a' was turned into after using 'surround on' (in my example). This may be the another indication of using a wrong locale during string processing in VAX internals.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 22 2006 :  6:20:22 PM  Show Profile  Reply with Quote
*sigh* the winXP upgrade broke the machine, i am going to have to setup a new test system, so it will be a day or two before i can get back to you on this one.

which OS are you using?

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

beef
Senior Member

Poland
42 Posts

Posted - Mar 23 2006 :  09:40:40 AM  Show Profile  Reply with Quote
Oops :\\ Good luck with xp battle.
My os is WinXP SP2. I've sent you the file you requested.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 23 2006 :  5:33:31 PM  Show Profile  Reply with Quote
one machine build and install later, i am seeing the same thing.

case=1071

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

support
Whole Tomato Software

5566 Posts

Posted - Jun 19 2006 :  5:44:02 PM  Show Profile  Reply with Quote
Fixed in build 1524:

Surround commands support Unicode characters. (case=1071)
Go to Top of Page

vik
New Member

7 Posts

Posted - Aug 31 2006 :  7:38:33 PM  Show Profile  Reply with Quote
First of all, sorry for my poor english. I will use images to show You what I mean.

I don't want to start a new topic cause my problem is very similar to this one beef posted.

I have a macro with polish characters in it:


I'm typing first two characters... then I'm trying to use Autotext feature to complete this macro:


Here's unexpected result of this operation:
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Aug 31 2006 :  11:21:28 PM  Show Profile  Reply with Quote
What version of VAX and which IDE?

Is it possible that the file you are editing has a different encoding than is used in the autotext (I don't know which one that is)?

Joe Pizzi
Go to Top of Page

vik
New Member

7 Posts

Posted - Sep 01 2006 :  12:34:03 AM  Show Profile  Reply with Quote
I forgot to provide these informations, sorry. I have VAX Build 1533 and Visual Studio 2005.

All of my screenshots comes from one file, so answer to Your question is no. Even when I use "Visual Assist X Options->Text Editor->Autotext->Edit Autotext" and paste problematic text there it still does not work.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 01 2006 :  12:42:44 AM  Show Profile  Reply with Quote
If you will give me the keystrokes to create (type) your autotext entry, I will see if it happens for me (probably). Then, I can enter a case.

Joe Pizzi
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 01 2006 :  01:00:05 AM  Show Profile  Reply with Quote
Actually, I found the L with stroke. I tried adding it to my code file. I couldn't get it in the file, even after changing the file encoding to Unicode. I even disabled VAX and couldn't get it in the code file.

If you disable VAX (and type the characters in manually), can you get the text of your macro into a code file? If so, how? Please give me steps so that I can see it work, so that I can verify that it is fixed after they address the issue.

Joe Pizzi
Go to Top of Page

vik
New Member

7 Posts

Posted - Sep 01 2006 :  02:03:56 AM  Show Profile  Reply with Quote
I think the localization of Your OS and default encoding may be the case. I have polish Windows XP SP2, so I'm just hit ALT + e or ALT + 169 and I see 'e' with something below it.

I'm not sure if this help You in resolving my problem, but maybe try something like that:
1. Open Visual Studio
2. Select File->Open->File
3. Download http://rapidshare.de/files/31515931/polish_characters.txt.html file and then select it in Open File dialog
4. Click the arrow on the right of Open button and select Open With
5. Choose C++ Source Code Editor (with encoding) and click OK
6. Choose Central European (Windows) - Codepage 1250 and click OK
7. You should see something like this:
Go to Top of Page

jrynd
New Member

USA
8 Posts

Posted - Sep 01 2006 :  09:30:47 AM  Show Profile  Reply with Quote
quote:
Originally posted by beef

A temporary solution may be: type ALT+0185 (on the keypad), you should see the character '#261;' (and the question for 1000 point - what do you see on the screen now? :) ). It is a unicode number, so should work everywhere (of course, if it is defined in the font you are using).



The way I enter Unicode characters is by holding down Alt and then pressing the plus key on the numeric keypad followed by the hexadecimal value, then releasing Alt. It is completely locale independent.

The "alt, zero, decimal digits" method gives you a character from the Windows code page (or unicode if it's high enough), and the "alt, decimal digits" gives you a character from the current OEM code page (DOS-like). Both of these depend on your locale.

Also, some applications are smart enough to realize that the character you've selected isn't in the current font, and temporarily change the font for that one character so it can be displayed.

http://www.fileformat.info/tip/microsoft/enter_unicode.htm
http://www.georgehernandez.com/h/xComputers/CharacterSets/Shortcuts.htm
Go to Top of Page

vik
New Member

7 Posts

Posted - Sep 01 2006 :  1:26:31 PM  Show Profile  Reply with Quote
Then I shoult give You correspondent Unicode values for these characters? Again I don't know if this helps, but here they are, right from Start->Programs->Accessories->Character Map:

Edited by - vik on Sep 01 2006 1:27:00 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 02 2006 :  4:26:42 PM  Show Profile  Reply with Quote
jpizzi you probably have to install / enable the Polish keyboard on your system before you can reproduce this. i have been here before, and have found that some languages (Polish included) are only available in winXP, not in win2k.

once you talk winXP into letting you use the Polish keyboard you can use ALT-GR to access some of these letters. with caps lock turned on the L with the bar on it can be typed with ALT-GR + L

i am seeing some problems here, but so far i cannot reproduce what you are getting vik. the closest i can get so far is this:



is your #define with the polish letters in it coloured as a #define? as shown here mine is not. however i am using an English winXP with an English VS2005 for this test, which may be important.

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

vik
New Member

7 Posts

Posted - Sep 02 2006 :  6:12:14 PM  Show Profile  Reply with Quote
Mine is not coloured too:
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 04 2006 :  7:09:19 PM  Show Profile  Reply with Quote
the colouring being wrong is:

case=2366

i have also raised a case for seeing the Polish characters turned back into English characters in the suggestion:

case=2367

i am hoping that fixing this will also fix your problem, where the text is suggested correctly, but entered wrongly. so far i still cannot reproduce this.

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

vik
New Member

7 Posts

Posted - Sep 04 2006 :  9:48:40 PM  Show Profile  Reply with Quote
Thanks for Your effort!

Edited:

That's odd. Autotext feature can handle lowercase polish characters.


Edited by - vik on Sep 15 2006 10:53:25 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 17 2006 :  11:27:15 AM  Show Profile  Reply with Quote
i have updated the case with this information. this seems odd, but may help if most of your variables are lower case.

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

vik
New Member

7 Posts

Posted - Sep 19 2006 :  12:13:32 AM  Show Profile  Reply with Quote
I'm not using polish characters in variables, that was just an example. I'm using them only in macros, and unfortunatly they are upper case. But You're right, this is some kind of solution.

Edit:

I just don't get it at all. Accidentally I discovered another information.

I have situation like that:


When I'm selecting first option here's what it shows:


And here's result of selecting second option:


I really don't have a clue what may be a reason for this strange behaviour, but maybe this information helps You to figure it out.

Edited by - vik on Sep 27 2006 06:06:12 AM
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