Janek Bevendorff
7263dcddfe
Fix stdin/stdout encoding on Windows. ( #2425 )
...
QTextStream uses the system default locale, but this breaks in
various situations: (1) It does not work on the native Windows shell
(cmd.exe, Powershell), since the default Windows locale is Windows-1252,
but the shell uses Windows-850. (2) It also breaks on *nix systems where
the locale is Latin1 or C, which is the case for most CI systems or
build servers.
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
2018-10-28 19:55:00 +01:00
..
2018-09-25 21:20:47 -04:00
2018-10-19 21:49:55 +02:00
2018-10-19 21:49:55 +02:00
2018-10-19 21:49:55 +02:00
2018-10-19 22:16:44 +02:00
2018-03-31 11:36:18 -04:00
2018-03-31 16:01:30 -04:00
2015-09-12 13:55:50 +02:00
2017-06-01 17:05:07 -04:00
2017-03-10 16:12:02 +01:00
2018-03-31 16:01:30 -04:00
2018-02-04 23:13:15 +01:00
2018-01-24 13:32:37 +01:00
2017-10-21 13:15:02 +02:00
2018-10-28 19:55:00 +01:00
2018-10-19 21:49:55 +02:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-03-31 16:01:30 -04:00
2018-03-31 16:01:30 -04:00
2018-09-25 21:12:47 +02:00
2017-06-14 15:54:43 +02:00
2018-07-06 22:23:49 -04:00
2017-03-10 16:12:02 +01:00
2018-09-30 09:36:39 -04:00
2017-12-17 10:44:12 -05:00
2018-09-15 12:10:26 -04:00
2017-03-10 16:12:02 +01:00
2018-03-31 16:01:30 -04:00
2018-03-31 16:01:30 -04:00
2018-09-30 09:36:39 -04:00
2018-10-19 21:49:55 +02:00
2018-09-30 09:36:39 -04:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-01-24 13:32:37 +01:00
2017-03-10 16:12:02 +01:00
2018-09-25 21:12:47 +02:00
2018-03-31 16:01:30 -04:00
2018-09-25 21:20:47 -04:00
2018-09-25 21:20:47 -04:00
2018-10-19 21:49:54 +02:00
2018-09-25 21:12:47 +02:00
2018-09-25 21:12:47 +02:00
2017-03-10 16:12:02 +01:00
2018-10-19 21:49:55 +02:00
2018-09-25 21:12:47 +02:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-09-25 21:12:47 +02:00
2018-03-01 19:26:18 -05:00
2018-10-19 21:49:55 +02:00
2018-09-30 09:36:39 -04:00
2018-10-19 21:49:55 +02:00
2018-09-30 09:36:39 -04:00
2018-08-24 09:42:38 -04:00
2018-07-14 17:07:07 -04:00
2018-10-19 21:49:54 +02:00
2018-10-19 21:49:54 +02:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-10-19 21:49:54 +02:00
2018-10-19 21:49:54 +02:00
2018-05-22 09:28:54 +02:00
2018-05-22 09:28:54 +02:00
2018-09-15 12:10:26 -04:00
2018-09-15 12:10:26 -04:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-03-31 16:01:30 -04:00
2018-03-31 16:01:30 -04:00