-
Following examples from the online help, I'm using this code.
It produces this.
That would seem to be wrong because (1) looking at the raw data (in Buf), and (2) looking at the Version resource with devenv, I see the string "040904b0". The same code successfully gets wLanguage = 0409 out of the few other EXEs that I've tried. And if I subsequently try to get "ProductVersion" like this
It fails (GLE = 1813 (resource can't be found)). It succeeds if I use L"\StringFileInfo\040904b0\ProductVersion" giving me the string "1.6.210210002-release1.6". Any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Check out the code here: https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp#L921 There is something in our build system that produces the wrong version locale info, but because this is not an API contract we haven’t cared to fix it. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I'll look later. What's an "API contract"? |
Beta Was this translation helpful? Give feedback.
-
That is to say, “if we break it or change it we never offered you specific support to begin with.” 😄 |
Beta Was this translation helpful? Give feedback.
-
I still don't understand. Let's drop it. |
Beta Was this translation helpful? Give feedback.
Check out the code here: https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp#L921
There is something in our build system that produces the wrong version locale info, but because this is not an API contract we haven’t cared to fix it.