[fpc-devel] Unicode paths

Sven Barth pascaldragon at googlemail.com
Wed Apr 13 11:11:34 CEST 2016


Am 13.04.2016 09:04 schrieb "Marco van de Voort" <marcov at stack.nl>:
>
> In our previous episode, Martin Schreiber said:
> > > Anyway, I never liked the fact that argv and argc are exported
symbols. If
> > > they weren't public, we could change them at will and/or have
differing
> > > implementations and encodings depending on target.  I would deprecate
them
> > > (being public)
> > >
> > Is there a possibility to still get the raw data in case one wants to
handle
> > encoding himself?
>
> argv and argc is not really raw data, and on many platforms (like
windows) processed.
>
> If you want to use the raw data, you'll need OS specific functions
> (getcommandlinew for e.g.  Windows), or, in case of the Unix RTL, the
> operatingsystem_parameter_* assembler symbols that convey the registers
> loaded by the loader to the RTL.

The usage of which I strongly discourage as they conflict with dynamic
packages and thus in the future won't be used on systems that support them.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160413/4b9635e9/attachment.html>


More information about the fpc-devel mailing list