Re: [fpc-pascal] Ido not understand UTF8 in Windows console.

2010-02-17 Thread JoshyFun
Hello FPC-Pascal,

Wednesday, February 17, 2010, 10:46:18 PM, you wrote:

LFDAM> {código de página UTF8}
LFDAM> //sin firma Unicode BOM
LFDAM> Begin
LFDAM>  Writeln('code page UTF8 - 65001 en Windows');
LFDAM>  Writeln('camión')
LFDAM> End.
LFDAM> Using the command chcp, change the code page to 65001, the UTF-8 for
LFDAM> Windows. I compiled the program, and then run and get the following 
errror:
LFDAM> Runtime error 101 at $00401460
LFDAM>$00401460
LFDAM>$004069B1

If you are doing this in Lazarus by default you are creating a GUI
application, so any writeln will raise an error as stdout is closed.

LFDAM> The same program when compiled and run on linux, no error. works well.
LFDAM> What am I doing wrong?

Linux always have a stdout open.

LFDAM> Original Message Spanish:
LFDAM> No entiendo UTF8 en consola Windows
LFDAM> Yo escribí el siguiente programa, usando un editor UTF8, sin marca de 
BOM.
LFDAM> Usando el comando chcp, cambio el código de página a 65001, el UTF8 para
LFDAM> Windows. Compilo el programa, y después lo ejecuto y aparece el siguiente
LFDAM> error :
LFDAM> El mismo programa, cuando lo compilo y lo ejecuto en linux, no aparece
LFDAM> ningún error. funciona bien.
LFDAM> ¿Qué estoy haciendo mal?

Lo mismo pero en español :) Vamos que elimines el flag de "Win32 GUI
application" en Compiler -> Linker.

Por cierto CP_UTF8 sólo funciona en >=NT 4.0 con fuentes TrueType en
ventana y muchos bats y similares dejan de funcionar.

-- 
Best regards,
 JoshyFun

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Ido not understand UTF8 in Windows console.

2010-02-17 Thread Luis Fernando Del Aguila Mejía
Translate Message : English
Ido not understand UTF8 in Windows console.
I wrote the following program, using an editor UTF8 without BOM mark.

{código de página UTF8}
//sin firma Unicode BOM
Begin
 Writeln('code page UTF8 - 65001 en Windows');
 Writeln('camión')
End.

Using the command chcp, change the code page to 65001, the UTF-8 for 
Windows. I compiled the program, and then run and get the following errror:
Runtime error 101 at $00401460
   $00401460
   $004069B1

The same program when compiled and run on linux, no error. works well.
What am I doing wrong?

Original Message Spanish:
No entiendo UTF8 en consola Windows
Yo escribí el siguiente programa, usando un editor UTF8, sin marca de BOM.
Usando el comando chcp, cambio el código de página a 65001, el UTF8 para 
Windows. Compilo el programa, y después lo ejecuto y aparece el siguiente 
error :
El mismo programa, cuando lo compilo y lo ejecuto en linux, no aparece 
ningún error. funciona bien.
¿Qué estoy haciendo mal?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal