[fpc-devel] Unicode paths

Marco van de Voort marcov at stack.nl
Wed Apr 13 13:51:54 CEST 2016


In our previous episode, Sven Barth said:
> > 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.

Yeah, it is more logical to say "just do paramstr(unicodestring) and convert
it to the encoding yourself". On unix paramstr and argv are nearly the same,
and on windows they are emulated anyway.



More information about the fpc-devel mailing list