Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-12

fpc translations

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi devels,

How does the localization of fpc work?
Is there only the -Fr parameter or is there more?
Does the compiler convert the encoding?

I guess the files in fpc/compiler/msg are used. For example for German it uses errord.msg.
What encoding has the file errord.msg?

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
Hi devels, How does the localization of fpc work? Is there only the -Fr parameter or is there more? Does the compiler convert the encoding?

No, the file must be in the encoding used on the platform. The compiler does not look at the encoding.

I guess the files in fpc/compiler/msg are used. For example for German it uses errord.msg. What encoding has the file errord.msg?

I would guess windows or DOS, since it's not readable on linux. The file errordu.msg is readable, so most likely it is UTF-8.

These files were made long before the compiler had a notion of codepages. These days one could perhaps look at recoding...

Michael.

Reply by email