<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 30.08.2023 16:23, Tomas Hajny via
fpc-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:e5bf80e64a935dceacddcdb498086437@hajny.biz">On
2023-08-30 15:26, Ondrej Pokorny via fpc-devel wrote:
<br>
<blockquote type="cite">On 30.08.2023 13:49, Mattias Gaertner via
fpc-devel wrote:
<br>
<blockquote type="cite">On 30.08.23 12:04, Tomas Hajny via
fpc-devel wrote:
<br>
<blockquote type="cite">On 2023-08-28 15:53, Ondrej Pokorny
via fpc-devel wrote:
<br>
[...]
<br>
Your output is different from mine (using a freshly compiled
trunk compiler):
<br>
Free Pascal Compiler version 3.3.1 [2023/08/29] for i386
<br>
Copyright (c) 1993-2023 by Florian Klaempfl and others
<br>
Target OS: Win32 for i386
<br>
Compiling t2.pas
<br>
t2.pas(4,2) Note: User defined: รค
<br>
</blockquote>
<br>
Then you don't have default windows setup. Maybe you installed
the cp 65001?
<br>
</blockquote>
<br>
Yes, Tomas, in other words: maybe you enabled "Beta support for
UTF-8"
<br>
in language options on your Windows?
<br>
</blockquote>
<br>
If you mean
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/56419639/what-does-beta-use-unicode-utf-8-for-worldwide-language-support-actually-do">https://stackoverflow.com/questions/56419639/what-does-beta-use-unicode-utf-8-for-worldwide-language-support-actually-do</a>,
then no, I don't have this option checked. However, even if I had
it checked (I don't), it couldn't make a difference, because I
didn't rely on the output displayed on console, but I actually
checked the codepage of the compiler output by redirecting it to a
file and checking the content of that file as well.</blockquote>
<p>So did I:</p>
<p><img src="cid:part1.qA73PFyr.PyEuyGfO@kluug.net" alt=""></p>
<p>See output.txt in the attachment. It is the output from
redirection with "> output.txt".</p>
The output is double-encoded on my system (UTF-8 as CP-850) - it
means I have to convert it first from CP-850 to ANSI, then I see
correct raw UTF-8 byte stream.<br>
<p>Ondrej<br>
</p>
</body>
</html>