Sign in Join

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

Mailing lists / lazarus / 2009-10

Compiler Options - Compiler Messages

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Marcelo Borges de Paula

Hello all,

I want to know how to make a particular compiler message file (.msg), the default to all projects. Is it possible ? I know that if i check this option in Project->Compiler Options->Messages, the file is used only for current project. BTW, could someone tell me which tool is used to edit these files (*.msg) and confirm that the encoding to use with lazarus is UTF-8 ?

Thanks in advance.

Marcelo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091006/58b14382/attachment.html>

Reply by email

dmitry boyarintsev
to Marcelo Borges de Paula

2009/10/6 Marcelo Borges de Paula :

I know that if i check this option in Project->Compiler Options->Messages, the file is used only for?current project.

Maybe the option should be in Environment -> Desktop options. The same place where IDE's interface language is selected.

BTW, could someone tell me which tool is used to edit these files (*.msg) and confirm that the encoding to use with lazarus is UTF-8 ?

Starting from revision r22056, msg file should be encoded with Utf8 for Lazarus, no matter what the OS is.
I'm not sure if there's any special tool for editting .msg file, but any texteditor (capable of saving plain text file) can be used.

thanks,
dmitry

Reply by email

Marcelo Borges de Paula

There is no option for this in Environment -> Desktop options.

And about a tool to edit compiler message file, if someone knows please... A specific editor will be handy. Visually this file is hard to maintain with a plain text editor.

Marcelo.

dmitry boyarintsev wrote 16 lines
2009/10/6 Marcelo Borges de Paula : > I know that if i check this option in Project->Compiler Options->Messages, > the file is used only for current project. Maybe the option should be in Environment -> Desktop options. The same place where IDE's interface language is selected. > BTW, could someone tell me which tool is used to edit these files (*.msg) > and confirm that the encoding to use with lazarus is UTF-8 ? Starting from revision r22056, msg file should be encoded with Utf8 for Lazarus, no matter what the OS is. I'm not sure if there's any special tool for editting .msg file, but any texteditor (capable of saving plain text file) can be used. thanks, dmitry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091006/555586d3/attachment.html>

Reply by email

Marcelo Borges de Paula

Never mind! I found where to alter the compiler default message file. FPC.cfg, of course. I forgot to look this file.

But i am still interested in some handy tool to edit these files !!!

BTW, i have two more questions:

- Some of these file looks outdated. The default "errore.msg" has 180Kb and date 07/09/2009 and portuguese versions have 152kb and date 01/08/2009. So i want to know if these files are updated when fpc is modified, or only "errore.msg" is updated.
- There are 2 portuguese versions: errorptd.msg and errorptw.msg. The first one is a DOS version and the second is Win version. I just want to know if it is right to have 2 version of these files or not. Seems not right to mention DOS or Win, since FPC is multi-platform.

Comments are welcomed.

Thanks in advance,

Marcelo.

Reply by email