0c67d03
Show popups in editor when loading/saving file fails - Robyt3
9b8d8e4
Don't reload editor preview image every frame if it's invalid - Robyt3
3ab0fa7
Fix editor preview image not being updated after searching - Robyt3
d0fe108
Add str_format_v
with va_list
argument - Robyt3
99ef97a
Use variadic arguments for ShowFileDialogError
formatting - Robyt3
854445d
Merge #6434 - bors[bot]list[]
can pass?list(elements)
#include <iostream>
#include <locale>
using namespace std;
int main()
{
cout << "With unset locale:" << endl;
cout << " setlocale(LC_ALL, NULL): " << setlocale(LC_ALL, NULL) << endl;
cout << " std::locale(\"\").name(): " << std::locale("").name() << endl;
cout << "With setlocale(LC_ALL, \"\"):" << endl;
setlocale(LC_ALL, "");
cout << " setlocale(LC_ALL, NULL): " << setlocale(LC_ALL, NULL) << endl;
cout << " std::locale(\"\").name(): " << std::locale("").name() << endl;
return 0;
}
Would be useful to figure out if we need something macOS platform specific for #2459. We definitely need something platform specific for Windows, because it outputs
With unset locale:
setlocale(LC_ALL, NULL): C
std::locale("").name(): C
With setlocale(LC_ALL, ""):
setlocale(LC_ALL, NULL): German_Germany.1252
std::locale("").name(): C
which is not even valid ISO 639-1.setlocale
is a mistakeWith unset locale:
setlocale(LC_ALL, NULL): C
std::locale("").name(): en_US.UTF-8
With setlocale(LC_ALL, ""):
setlocale(LC_ALL, NULL): en_US.UTF-8
std::locale("").name(): en_US.UTF-8
So we can get the ISO 639-1 code from std::locale("").name()
alone.GetUserDefaultLocaleName
anyway.robster.c:6:10: fatal error: 'iostream' file not found
xd8c7b2fc
scripts/git_revision.py: Allow to pass in the git shortrev - heinrich5991DDNET_GIT_SHORTREV_HASH
variable for this. This allows builds that do not use git
to still have this kind of version information.
-framework CoreFoundation
CFStringRef languageCodeRef = static_cast<CFStringRef>(CFLocaleGetValue(localeRef, kCFLocaleLanguageCode));
User's locale: en
en_GB
or en_US
but better than nothingfr
de
no further weirdness for custom languagesen
b1998e8
Include Git commit SHA1 in releases - heinrich5991e8727f3
Use ddnet-libs repo, use branch variables to support RC and releases - def-