Sign in Join

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

Mailing lists / lazarus / 2011-12

Messages window localization problem

3 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
to marcelo.bp: Something weird is happening with the Messages Window. Accentuated words in portuguese…
Show quoted text 11 lines
Hello list, Something weird is happening with the Messages Window. Accentuated words in portuguese aren?t displaying correctly. It seems that the window aren?t understanding the UTF-8 encoding. And more, if i set the IDE language to english, the messages still display in portuguese. Using Lazarus 0.9.31 revision 34371 ? win64 FPC 2.7.1 revision 19883 Any ideas?

The messages are coming from FPC, which has its own translations. Search your fpc.cfg for parameter -Fr

I will ask on the FPC list how to solve this in general.

Mattias

Reply by email

marcelo.bp

Hello list,

Something weird is happening with the Messages Window. Accentuated words in portuguese aren?t displaying correctly. It seems that the window aren?t understanding the UTF-8 encoding.

And more, if i set the IDE language to english, the messages still display in portuguese.

Using Lazarus 0.9.31 revision 34371 ? win64
FPC 2.7.1 revision 19883

Any ideas?

Regards,

Marcelo.

A sample output:

Op??es alteradas, recompilando ap?s limpeza com -B Hint: Start of reading config file D:\lazarus\fpc\2.7.1\bin\x86_64-win64\fpc.cfg Hint: End of reading config file D:\lazarus\fpc\2.7.1\bin\x86_64-win64\fpc.cfg Compilador Free Pascal vers?o 2.7.1 [2011/12/22] para x86_64 Copyright (c) 1993-2011 by Florian Klaempfl
SO Alvo: Win64 for x64
Compilando pop3msglister.lpr
Compilando pop3frm.pas
Compilando D:\lazarus\components\indy\IdPOP3.pas
Compilando D:\lazarus\components\indy\IdAssignedNumbers.pas Compilando D:\lazarus\components\indy\IdGlobal.pas Compilando D:\lazarus\components\indy\IdException.pas Compilando D:\lazarus\components\indy\IdResourceStrings.pas Gravando arquivo Tabela Recursos 'String': IdResourceStrings.rst Compilando D:\lazarus\components\indy\IdStream.pas Compilando D:\lazarus\components\indy\IdStreamVCL.pas IdGlobal.pas(2243,45) Dica: Vari?vel local "LCPInfo" parece n?o ter sido inicializada IdGlobal.pas(951,27) Dica: Par?metro "Chars" n?o usado IdGlobal.pas(952,75) Dica: Par?metro "ByteCount" n?o usado IdGlobal.pas(953,27) Dica: Par?metro "Bytes" n?o usado IdGlobal.pas(954,75) Dica: Par?metro "CharCount" n?o usado IdGlobal.pas(964,75) Dica: Par?metro "ByteCount" n?o usado IdGlobal.pas(965,37) Dica: Par?metro "ByteCount" n?o usado IdGlobal.pas(974,27) Dica: Par?metro "AChars" n?o usado IdGlobal.pas(976,27) Dica: Par?metro "ABytes" n?o usado IdGlobal.pas(2843,27) Dica: Par?metro "AChars" n?o usado IdGlobal.pas(2845,27) Dica: Par?metro "ABytes" n?o usado IdGlobal.pas(4034,26) Dica: Convers?o entre ordinais e ponteiros n?o ? port?vel IdGlobal.pas(4232,3) Nota: Vari?vel local "LVoid" ? atribu??da mas nunca usada IdGlobal.pas(4295,15) Aviso: lo\hi(dword\qword) retorna 'upper\lower word\dword' IdGlobal.pas(4307,41) Dica: Vari?vel local "LErr" parece n?o ter sido inicializada IdGlobal.pas(4415,33) Dica: Vari?vel local "LErr" parece n?o ter sido inicializada IdGlobal.pas(4571,49) Dica: Vari?vel local "LErr" parece n?o ter sido inicializada IdGlobal.pas(1601,93) Dica: Par?metro "APolicy" n?o usado IdGlobal.pas(1602,31) Dica: Par?metro "AName" n?o usado IdGlobal.pas(1602,106) Dica: Par?metro "AThreadID" n?o usado IdGlobal.pas(5460,58) Dica: Vari?vel local "tmez" parece n?o ter sido inicializada IdGlobal.pas(5841,4) Aviso: "formal parameter" n?o suportado ainda dentro procedimento\fun???o em linha IdGlobal.pas(5841,4) Aviso: Procedimentos em linha desabilitados IdGlobal.pas(5922,4) Aviso: "formal parameter" n?o suportado ainda dentro procedimento\fun???o em linha IdGlobal.pas(5922,4) Aviso: Procedimentos em linha desabilitados IdGlobal.pas(5931,29) Dica: Vari?vel de retorno da fun???o parece n?o ter sido inicializada IdGlobal.pas(6143,4) Aviso: "formal parameter" n?o suportado ainda dentro procedimento\fun???o em linha IdGlobal.pas(6143,4) Aviso: Procedimentos em linha desabilitados IdGlobal.pas(6166,53) Dica: Vari?vel local "LBytes" parece n?o ter sido inicializada IdGlobal.pas(6200,43) Dica: Vari?vel de retorno da fun???o parece n?o ter sido inicializada IdGlobal.pas(6215,37) Dica: Vari?vel local "Lb" parece n?o ter sido inicializada IdGlobal.pas(6437,35) Dica: Convers?o entre ordinais e ponteiros n?o ? port?vel IdGlobal.pas(6437,27) Dica: Convers?o entre ordinais e ponteiros n?o ? port?vel IdGlobal.pas(6437,35) Aviso: Convertendo ponteiros para inteiros assinados pode resultar em compara????es de resultados incorretas e erros de faixa. Ao inv?s disso, use tipos n?o assinados. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111223/4c1301ee/attachment.html>

Reply by email

marcelo.bp
to Mattias Gaertner: On Fri, 23 Dec 2011 16:56:32 -0300 The messages are coming from FPC, which has its own…

First of all, i wish you all, *** Merry Christmas ***

Mattias,

I?m not sure, but i still think that this is an IDE Bug. I was checking my configuration here and:

1) All -Fr entries in my fpc.cfg is quoted.

2) I configured the IDE to load the compiler error messages at Tools->Options->Environment->Compiler messages language file

3) I contributed with these translation in the past. The file errorptu.msg, that i loaded in IDE (2) is utf-8 encoded. This used to work.

But right now, the Message window do not display the accentuated words correctly.

An aditional problem is that if i clear the field (2), i have to start the IDE two times to get the default english error msgs. (????)

Regards,

Marcelo.

PS: Do anyone know a tool to edit the fpc compiler msg files ?

-----Mensagem Original-----

Earlier message 28 lines
From: Mattias Gaertner Sent: Friday, December 23, 2011 4:28 PM To: Subject: Re: [Lazarus] Messages window localization problem On Fri, 23 Dec 2011 16:56:32 -0300 "marcelo.bp" wrote: > Hello list, > > Something weird is happening with the Messages Window. Accentuated words > in portuguese aren?t displaying correctly. > It seems that the window aren?t understanding the UTF-8 encoding. > > And more, if i set the IDE language to english, the messages still display > in portuguese. > > Using Lazarus 0.9.31 revision 34371 ? win64 > FPC 2.7.1 revision 19883 > > Any ideas? The messages are coming from FPC, which has its own translations. Search your fpc.cfg for parameter -Fr I will ask on the FPC list how to solve this in general. Mattias

Reply by email