[fpc-devel] How to set code page in terminal? (Windows)
waldo kitty
wkitty42 at windstream.net
Fri Jun 22 01:08:08 CEST 2012
i said i'd try to test...
On 6/21/2012 17:39, silvioprog wrote:
> ------------------------------------------------------------
> program test;
>
> {$mode objfpc}{$H+}
>
> {$IFDEF MSWINDOWS}
> uses
> windows;
> {$ENDIF}
>
> const
> C = 'Atenção';
> begin
> {$IFDEF MSWINDOWS}
> SetConsoleOutputCP(CP_UTF8);
> SetTextCodePage(Output, CP_UTF8);
Options changed, recompiling clean with -B
Hint: Start of reading config file C:\freepascal\fpc\2.6.0\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\freepascal\fpc\2.6.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.6.0 [2012/05/21] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling test.lpr
test.lpr(15,18) Error: Identifier not found "SetTextCodePage"
test.lpr(20) Fatal: There were 1 errors compiling module, stopping
> {$ENDIF}
> WriteLn(C);
> end.
> ------------------------------------------------------------
>
> Lazarus 1.1 r37649 FPC 2.7.1 i386-win32-win32/win64 | Windows 7 - 64
lazarus 1.1 r37695 fpc 2.6.0 i386-win32 | w2k
maybe i'll try on my vista box? i need to updatelaz on it anyway ;)
More information about the fpc-devel
mailing list