You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include <stdio.h>
int main()
{
char* string1 = "This is a narrow string.\n";
wchar_t* string2 = L"This is a wide string.\n";
return 0;
}
Compiled with
cl /Zi /Od main.c
string1 shows the entire string contents in the Watch window, but string2 only shows the first "T":
Changing the View Rule to "text" or something else doesn't have any effect, though using something like array:20 will allow me to expand it to see all the characters in an array-like format.
I assume this is because technically speaking the second byte of the "T" character is a 0, so it thinks that's the end of the null-terminated string. But just a guess.
The text was updated successfully, but these errors were encountered:
Fixed in 4b3941c. This is in dev and will be in the next release. The text view rule is still not going to visualize these correctly yet, but that is still an actively under-development feature.
I have the following code snippet:
Compiled with
string1
shows the entire string contents in the Watch window, butstring2
only shows the first"T"
:Changing the View Rule to "text" or something else doesn't have any effect, though using something like
array:20
will allow me to expand it to see all the characters in an array-like format.I assume this is because technically speaking the second byte of the
"T"
character is a 0, so it thinks that's the end of the null-terminated string. But just a guess.The text was updated successfully, but these errors were encountered: