[fpc-pascal] Executing external processes and codepages

Marco van de Voort marcov at stack.nl
Wed May 11 11:27:26 CEST 2016


In our previous episode, Jonas Maebe said:
> >
> > It assumes for windows utf16, and for Unix filesystem encoding (e.g.
> > unix.pp:254).
> >
> > If you have more info, please share.
> 
> The filesystem encoding is fine to find the binary on Unix, but the  
> parameters you specify to that binary will be interpreted by that same  
> binary once it's running. It will not interpret those parameters  
> according to the filesystem encoding, but according to whatever is  
> determined to be the DefaultSystemCodePage *by that executed binary*.

I do understand that, and it will be fine most of the time.

I'm not sure what you are suggesting as alternative. Saving the encoding at
startup, so it can be reused in cases like this, in case somebody change
defaultsystemcodepage?

Or using defaultsystemcodepage instead of filesystem encoding?



More information about the fpc-pascal mailing list