[windows] adding "uses crt" causes implicit code page conversion
Original Reporter info from Mantis: Azarien
-
Reporter name: Wiktor Sywula
Original Reporter info from Mantis: Azarien
- Reporter name: Wiktor Sywula
Description:
In console applications that use the CRT unit, all write and writeln calls implicitly change the current code page to ANSI.
This seems to be by design and might sometimes be a good thing, however:
- it is not consistent with the program behaviour when the crt unit is not used,
- it is not backward compatible,
- the implementation is not optimal (EVERY write causes the change of current codepage back and forth),
- there seems to be no way to disable or configure this feature, apart from reassigning input/output streams, effectively disabling the CRT functionality.
Mantis conversion info:
- Mantis ID: 16064
- OS: Windows
- OS Build: Vista
- Platform: win32
- Version: 2.4.0
- Monitored by: » @marcoonthegit (Marco van de Voort), » @ganmax (Maxim Ganetsky)