Sign in Join

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

Mailing lists / fpc-pascal / 2010-07

Any drawbacks with -Fcutf8 param

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

If I pass -Fcutf8 to all my projects, even though the source code in units are plain ASCII, is there any negative/drawbacks regarding FPC and how it processes my units?

Basically, is it "safe" to simply pass -Fcutf8 to FPC for all my projects?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/
Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
If I pass -Fcutf8 to all my projects, even though the source code in units are plain ASCII, is there any negative/drawbacks regarding FPC and how it processes my units? Basically, is it "safe" to simply pass -Fcutf8 to FPC for all my projects?

As long as they indeed don't contain any characters > #127: yes.

Jonas

Graeme Geldenhuys
to Jonas Maebe
Jonas Maebe wrote
As long as they indeed don't contain any characters > #127: yes.

OK, that should be fine. I'm curious though, what would happen if they do contain characters > #127? Does the compiler though some "malformed unicode character" error during compilation?

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/
Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote
what would happen if they do contain characters > #127? Does the compiler though some "malformed unicode character" error during compilation?

If the character is indeed malformed (it might also be a valid sequence by accident), then the compiler will throw an error.

Jonas

Tom Carly
to Jonas Maebe

Hi,

I'm using TMySQL50Connection and TSQLQuery to do a query on a mysql server. Is there a way that you can set a timeout on a query so that it also automatically kills the mysql process after the timeout and doesn't keep loading the mysql server?

Thanks,

Tom