[fpc-devel] Console encoding on Windows, output to file with ">"

2017-05-03 Thread Ondrej Pokorny
Hello, I have a simple FPC program: --- program GermanTest; {$codepage utf8} begin Writeln('ÄäÖöÜüß'); end. --- If I run it in the console, I see correct characters: BUT when I redirect the output to a file with ">" : GermanTest.exe > GermanTest.txt I get corrupted characters "Ž„™”š�á"

Re: [fpc-devel] Console encoding on Windows, output to file with ">"

2017-05-03 Thread Michael Thompson
On 3 May 2017 at 14:34, Ondrej Pokorny wrote: > > BUT when I redirect the output to a file with ">" : > GermanTest.exe > GermanTest.txt I get corrupted characters > "Ž„™”š á" (see attachment). When I open the attachment on my PC, I see the correct characters: [image: Inline

Re: [fpc-devel] Console encoding on Windows, output to file with ">"

2017-05-03 Thread Ondrej Pokorny
Michael, because I cannot comment on a closed issue report I post my answer to https://bugs.freepascal.org/view.php?id=31746#c100091 here: > I don't think what you write is correct. As far as I can see in the code of Delphi Berlin: Delphi uses always the defaultsystemcodepage for text files,

Re: [fpc-devel] Console encoding on Windows, output to file with ">"

2017-05-03 Thread Michael Van Canneyt
On Wed, 3 May 2017, Ondrej Pokorny wrote: Michael, because I cannot comment on a closed issue report I post my answer to https://bugs.freepascal.org/view.php?id=31746#c100091 here: > I don't think what you write is correct. As far as I can see in the code of Delphi Berlin: Delphi uses

Re: [fpc-devel] Console encoding on Windows, output to file with ">"

2017-05-03 Thread Petr Kristan
On Wed, May 03, 2017 at 08:34:14AM +0200, Ondrej Pokorny wrote: > Hello, > > I have a simple FPC program: > > --- > program GermanTest; > > {$codepage utf8} > begin > Writeln('ÄäÖöÜüß'); > end. > --- > > If I run it in the console, I see correct characters: > > BUT when I redirect the

Re: [fpc-devel] Let's Encrypt cert and mantis.freepascal.org

2017-05-03 Thread Michael Van Canneyt
On Wed, 3 May 2017, Tomas Hajny wrote: On Wed, May 3, 2017 00:33, Michael Van Canneyt wrote: On Tue, 2 May 2017, Martin wrote: On 02/05/2017 22:59, Michael Van Canneyt wrote: That's probably good as the fastest / short-term solution, but as long as both DNS records are valid and point to

Re: [fpc-devel] Let's Encrypt cert and mantis.freepascal.org

2017-05-03 Thread Michael Van Canneyt
On Wed, 3 May 2017, Ondrej Pokorny wrote: On 02.05.2017 19:20, Michael Van Canneyt wrote: Changed the bugtraq:url. Revision 36062. Off-topic: I now switched from mantis.freepascal.org to bugs.freepascal.org and had to block the running cheetah icon again. Remember the good webpage

Re: [fpc-devel] Console encoding on Windows, output to file with ">"

2017-05-03 Thread Ondrej Pokorny
On 03.05.2017 9:07, Petr Kristan wrote: Try: Writeln(UTF8ToSys('ÄäÖöÜüß')); No, it doesn't help. I debugged into the issue and found out that the exported file was in DOS-850 encoding (the same as the console lived in). Delphi changes the output encoding to "DefaultSystemCodePage" if

Re: [fpc-devel] Let's Encrypt cert and mantis.freepascal.org

2017-05-03 Thread Ondrej Pokorny
On 02.05.2017 19:20, Michael Van Canneyt wrote: Changed the bugtraq:url. Revision 36062. Off-topic: I now switched from mantis.freepascal.org to bugs.freepascal.org and had to block the running cheetah icon again. Remember the good webpage designer (generally speaking UI designer) rule:

Re: [fpc-devel] Let's Encrypt cert and mantis.freepascal.org

2017-05-03 Thread David Copeland
Another alternative I have used is to get a new certificate that includes all the subdomains. Dave Copeland. On 02/05/17 06:17 PM, Martin wrote: > On 02/05/2017 22:59, Michael Van Canneyt wrote: >> >>> That's probably good as the fastest / short-term solution, but as >>> long as >>> both DNS