Join GitHub today
Fix stdin/stdout encoding on Windows. #2425
QTextStream uses the system default locale, but this breaks in various situations:
We allow overriding the detected codec by setting the ENCODING_OVERRIDE environment variable, but otherwise prefer Windows-850 on Windows and UTF-8 on any other system, even if LANG is set to something else.
This resolves #2413
How has this been tested?
Uni tests pass on Windows and unlocking a database with a non-ASCII password works as well.
Types of changes