There seems to be a change (or bug?) in tcc17 with chcp in the handling of unicode or native win1252 encodings, breaking all my batch files. Attached are test batch files encoded in either utf8 or win1252. This is what I get (note that the chcp 65001 is ignored on tcc17):
... and ...
The bug/change is the garbled output on the last line, while the 1252 output is fine (but shouldn't after the chcp to unicode)
Code:
[C:\Program Files\JPSoft\TCMD16x64]ver
TCC 16.03.55 x64 Windows 7 [Version 6.1.7601]
[C:\Program Files\JPSoft\TCMD16x64]chcp 1252
Active code page: 1252
[C:\Program Files\JPSoft\TCMD16x64]umlaut-1252-le
TeßtÄÖÜäöü
[C:\Program Files\JPSoft\TCMD16x64]umlaut-utf8-le
TeßtÄÖÜäöü
[C:\Program Files\JPSoft\TCMD16x64]chcp 65001
Active code page: 65001
[C:\Program Files\JPSoft\TCMD16x64]umlaut-1252-le
Te�t������
[C:\Program Files\JPSoft\TCMD16x64]umlaut-utf8-le
TeßtÄÖÜäöü
... and ...
Code:
[C:\Program Files\JPSoft\TCMD17x64]ver
TCC 17.00.62 x64 Windows 7 [Version 6.1.7601]
[C:\Program Files\JPSoft\TCMD17x64]chcp 1252
Active code page: 1252
[C:\Program Files\JPSoft\TCMD17x64]umlaut-1252-le
TeßtÄÖÜäöü
[C:\Program Files\JPSoft\TCMD17x64]umlaut-utf8-le
TeßtÄÖÜäöü
[C:\Program Files\JPSoft\TCMD17x64]chcp 65001
Active code page: 65001
[C:\Program Files\JPSoft\TCMD17x64]umlaut-1252-le
TeßtÄÖÜäöü
[C:\Program Files\JPSoft\TCMD17x64]umlaut-utf8-le
TeßtÄÖÜäöü
The bug/change is the garbled output on the last line, while the 1252 output is fine (but shouldn't after the chcp to unicode)
Attachments
Last edited: