ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

std::wstring names #64

Open n0lavar opened 1 year ago

n0lavar commented 1 year ago

non-english output may look like this image it would be nice to get localized text

ThePhD commented 1 year ago

Ooh, that does look like some pretty bad mojibake.... let's see if we can't clean that up a little bit.

What's your locale, so I can test locally?

n0lavar commented 1 year ago

setlocale(LC_ALL, ""); cout << "LC_ALL: " << setlocale(LC_ALL, NULL) << endl; cout << "LC_CTYPE: " << setlocale(LC_CTYPE, NULL) << endl;

this gives me

LC_ALL: Russian_Russia.1251 LC_CTYPE: Russian_Russia.1251

btw I don't know what is hidden image

nabijaczleweli commented 1 year ago

Given that I get

  OS:
    Name     : Windows NT
    Full name: Microsoft Windows 10 Home
    Version  : 10.0.14393 build 693

it's "Микрософт" probably?

n0lavar commented 1 year ago

Looks like this