Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 visual studio crashed when use locale Emulator

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
shan654123 Posted - Feb 07 2022 : 09:47:37 AM
when use Locale emulator to open visual studio.(change software locale, maybe like Microsoft Applocale)

visual studio 2019/2015/2010 will crashed by vax plugin.

https://pooi.moe/Locale-Emulator/
13   L A T E S T    R E P L I E S    (Newest First)
shan654123 Posted - Feb 15 2022 : 9:46:44 PM
ok, thanks

quote:
Originally posted by feline

Definitely a bug, I just don't know how quickly we will get to looking a this though.

feline Posted - Feb 15 2022 : 1:10:09 PM
Definitely a bug, I just don't know how quickly we will get to looking a this though.
shan654123 Posted - Feb 14 2022 : 10:03:30 PM
thank you for your reply.

vs2019 cant set solution default file encoding. or set default open with encoding.
so I need to select file encoding every time when I open file using context open with...,
and vs2019 'global search' cant working correctly.(only opened file encoding is correctly, and only opened files characters can searched correctly)
it's inconvenient

Otherwise there are many ways to resolve this problem, but also inconvenient:
1. change my system locale.
2. using virtual machine.
3. using clion. (but only supports cmake project)


So I think locale-emulator is the best way. if vs2019 not crashed is perfect.

---
that's why I report a bug for you. .




quote:
Originally posted by feline

I was able to reproduce the crash, and have put in a bug report for this:

case=147814

I see the problem now, I was expecting you to be using Unicode files, but these are not Unicode at all. You need to set the locale to understand the files. Is moving the code files over to Unicode with time an option? It would solve problems like this without needing to use a tool to change the locale for Visual Studio.

feline Posted - Feb 14 2022 : 11:35:35 AM
Another option, if you use the IDE's File Open dialog, and select the file you want to open, and use the down arrow at the end of the Open button, and use "Open With..." and specify the encoding to use when opening the file.

https://docs.microsoft.com/en-us/visualstudio/ide/how-to-save-and-open-files-with-encoding?view=vs-2022
feline Posted - Feb 14 2022 : 11:15:44 AM
I was able to reproduce the crash, and have put in a bug report for this:

case=147814

I see the problem now, I was expecting you to be using Unicode files, but these are not Unicode at all. You need to set the locale to understand the files. Is moving the code files over to Unicode with time an option? It would solve problems like this without needing to use a tool to change the locale for Visual Studio.
shan654123 Posted - Feb 13 2022 : 11:05:20 PM
have your vs2019 crashed when use locale-emulator to open vs2019 and open my sample project?(with vax plugin)

you can open vs2019 with locale-emulator(locale is Taiwan China),and open project with code page 950(traditional chinese) to have a test.













--
the projects is writed by taiwan team, so the source files code page is 950.(traditional chinese), and I cant save file as to another code page. there are thousands of source file!

and my system locale default code page is 936(simple chinese), that's why traditonal chinese cant display correctly in vs2019. so I use locale-emulator to emulator my locale to taiwan.

---
It's not vax plugin's problem?


quote:
Originally posted by feline

When I open the source code files "20DBConvDlg.cpp" and "20DBConvDlg.h" they are reported as using file encoding codepage 1252. These are the files from the zip file, so they should have the same encoding as when you created the zip file.

To check this in Visual Studio 2019, I used:

File menu -> Save As...

then in the "Save File As" dialog, I used the down arrow at the right hand side of the Save button, where you can select "Save with Encoding..." which tells you the current file encoding.

This file encoding is not Unicode, and does not support Chinese characters naturally:

https://en.wikipedia.org/wiki/Windows-1252

Can you please try the same thing on your system, and see if your files are actually encoded with gb2312?

feline Posted - Feb 11 2022 : 08:39:38 AM
When I open the source code files "20DBConvDlg.cpp" and "20DBConvDlg.h" they are reported as using file encoding codepage 1252. These are the files from the zip file, so they should have the same encoding as when you created the zip file.

To check this in Visual Studio 2019, I used:

File menu -> Save As...

then in the "Save File As" dialog, I used the down arrow at the right hand side of the Save button, where you can select "Save with Encoding..." which tells you the current file encoding.

This file encoding is not Unicode, and does not support Chinese characters naturally:

https://en.wikipedia.org/wiki/Windows-1252

Can you please try the same thing on your system, and see if your files are actually encoded with gb2312?
shan654123 Posted - Feb 10 2022 : 7:32:58 PM
here is the new download link:
https://wss1.cn/f/7kwzxlj8aha
https://wss1.cn/f/7kwyqybmsps

I had sent your an email with my sample project package attachment.
Please check your email. thanks.

---
the traditional chinese code can not display correctly is not vax plugin's problem. I think is
visual studio's problem.
if windows system locale is Taiwan/china (code page big5),
vs2019 show traditional chinese code correctly. (code file encoding big5),
and show simple chinese code incorrectly.( code file encoding gbk or gb2312)

if windows system locale is mainland/china (code page gbk),
vs2019 show traditional chinese code incorrectly. (code file encoding big5),
and show simple chinese code correctly.(code file encoding gbk or gb2312)

vs2019 will show code characters correctly need to set system locale code page is the same with code file encoding.

so I use locale-emulator to emulate vs2019's locale to Taiwan/china, and It show traditional chinese code incorrectly
but vax plugin not work correctly.


quote:
Originally posted by feline

That's not right, I thought we had fixed the Unicode characters not showing correctly problems. Obviously not all of them.

Can you please email me the test project? The download link is producing a dialog, I think a login dialog, but since I cannot read Chinese, or what ever language it is, it is a bit hard to tell. Please send me the files via email:

[email protected]

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

feline Posted - Feb 10 2022 : 06:42:44 AM
That's not right, I thought we had fixed the Unicode characters not showing correctly problems. Obviously not all of them.

Can you please email me the test project? The download link is producing a dialog, I think a login dialog, but since I cannot read Chinese, or what ever language it is, it is a bit hard to tell. Please send me the files via email:

[email protected]

including this thread ID or URL in the description, so we can match it up.
shan654123 Posted - Feb 09 2022 : 9:19:11 PM
my system locale is china/beijing(code page is gbk), when open taiwan china(code page big5) project, visual studio can't show traditional Chinese correctly. like this:






and use locale-emulator, the project code displayed correctly:




if disable vax plugin, everything is ok.

here is my sample project:

https://pan.baidu.com/s/1Rbwz0ZtlTEQdSuygSkz_dA?pwd=nknp
download code: nknp

thank you.



----
here is system events log, but not detail messages:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Application Error" /> 
  <EventID Qualifiers="0">1000</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2022-02-10T02:12:34.1775268Z" /> 
  <EventRecordID>83049</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="0" ThreadID="0" /> 
  <Channel>Application</Channel> 
  <Computer>DESKTOP-DN3552C</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>devenv.exe</Data> 
  <Data>16.11.31729.503</Data> 
  <Data>61551a24</Data> 
  <Data>ntdll.dll</Data> 
  <Data>10.0.19041.1466</Data> 
  <Data>9012d056</Data> 
  <Data>c0000374</Data> 
  <Data>000e6c43</Data> 
  <Data>7370</Data> 
  <Data>01d81e23977677d8</Data> 
  <Data>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe</Data> 
  <Data>C:\Windows\SYSTEM32\ntdll.dll</Data> 
  <Data>e68af7c1-951b-4d5b-be2b-d328338e3273</Data> 
  <Data /> 
  <Data /> 
  </EventData>
  </Event>


---
here is vax errors.log, but not detail messages:

Exception: PT::624 2/10/2022 09:51:38 0x2b80


How to get crash file or crash message log ?


quote:
Originally posted by feline

Opening Unicode code files was the extra step I needed to see the crash:

case=147814

Why do you need to use this with Visual Studio though? If your source code has been set to Taiwan China encoding, isn't this enough to have the code displayed correctly?

feline Posted - Feb 09 2022 : 08:44:10 AM
Opening Unicode code files was the extra step I needed to see the crash:

case=147814

Why do you need to use this with Visual Studio though? If your source code has been set to Taiwan China encoding, isn't this enough to have the code displayed correctly?
shan654123 Posted - Feb 08 2022 : 9:13:13 PM
open visual studio is fine, but open project crashed.
my windows system locale is china(system default encoding is gbk/gb2312)
and my project encoding is big5 (locale Taiwan China). so i use Locale-Emulator using the context menu to run visual studio in 'run in big5#65288;locale Taiwan China#65289;'. when project opened, use mouse to scroll down, and vs2019 will crashed.
jetbrains resharper c++ plugin working fine.


quote:
Originally posted by feline

Just installing Locale-Emulator and then using the context menu to run Visual Studio 2019 "Run in Japanese" doesn't cause any crash for me. This is with VA 2443.

Does it require specific settings?

If you want to use Visual Studio with a different language, why not just tell Visual Studio to use the language you want to use?

https://agirlamonggeeks.com/2019/03/10/how-to-change-language-in-visual-studio-2019-after-installation/

feline Posted - Feb 07 2022 : 10:43:40 AM
Just installing Locale-Emulator and then using the context menu to run Visual Studio 2019 "Run in Japanese" doesn't cause any crash for me. This is with VA 2443.

Does it require specific settings?

If you want to use Visual Studio with a different language, why not just tell Visual Studio to use the language you want to use?

https://agirlamonggeeks.com/2019/03/10/how-to-change-language-in-visual-studio-2019-after-installation/

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000