Sign in Join

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

Mailing lists / fpc-devel / 2008-09

clocale unit

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Paul Ishenin

Hello, FPC developers' list

Please explain why clocale must be included as a separate unit to the project?
Why not include it into unix sysutils?
Can we freely use it in lazarus or we can get problems?

Best regards,
Paul Ishenin.

Reply by email

Michael Van Canneyt
to Paul Ishenin
Paul Ishenin wrote
Hello, FPC developers' list Please explain why clocale must be included as a separate unit to the project? Why not include it into unix sysutils?

Because we don't want a FPC binary to depend on Libc by default. All LibC dependencies are optional.

If Graeme Geldenhuys finds the time, he'll code a native Object Pascal replacement for the clocale unit. That replacement could go in SysUtils.
(that is, he said he'd give it a try)

Can we freely use it in lazarus or we can get problems?

Lazarus should not be a problem, because you always use the C library anyway since you are connecting to X via the X client libs...

Michael.

Reply by email

Marco van de Voort
to Paul Ishenin: Hello, FPC developers' list Please explain why clocale must be included as a separate…

In our previous episode, Paul Ishenin said:

Please explain why clocale must be included as a separate unit to the project? Why not include it into unix sysutils?

It uses the libc library. Same reason as cthreads, cwstring etc. It also allows the user to override basic locale initialization and substitute it with its own.

Can we freely use it in lazarus or we can get problems?

Similar as for the units above: Lazarus already uses library libc.

Reply by email

Marco van de Voort
to Michael Van Canneyt: Because we don't want a FPC binary to depend on Libc by default. All LibC dependencies…

In our previous episode, Michael Van Canneyt said:

If Graeme Geldenhuys finds the time, he'll code a native Object Pascal replacement for the clocale unit. That replacement could go in SysUtils. (that is, he said he'd give it a try)

(IMHO that should be optional too, since contrary to other 0-implementations that are overridable, they will probably be large or require extra files. User should be able to skip that)

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: Because we don't want a FPC binary to depend on Libc by default. All LibC dependencies…
Michael Van Canneyt wrote 5 lines
If Graeme Geldenhuys finds the time, he'll code a native Object Pascal replacement for the clocale unit. That replacement could go in SysUtils. (that is, he said he'd give it a try)

And yes, it's still on my todo list and slowly moving it's way to the top. :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email