[fpc-pascal] Executing external processes and codepages

Marco van de Voort marcov at stack.nl
Wed May 11 14:11:42 CEST 2016


In our previous episode, Michael Van Canneyt said:
> >
> > I don't like that. The 3.x idea is to get rid of manual conversions and
> > hack-and-convert-it-as-you-go encoding management, not just rebadge the old
> > practices to rawbytestring.
> 
> You may not like it, but there is simply no other choice:
> 
> Since you don't know what the receiving program does with the receives
> arguments, all attempts to guess it are erroneous by definition.
> 
> Only the programmer knows what the receiving program will do (or should), 
> so he must take it into account. Hence rawbytestring.
 
> Don't pamper the programmer so much. He needs to make correct decisions.

You are right, if that scenario was the common one. Note that Jonas hasn't
named a scenario where it actually happens, so keeping it all manual for one
basket case is IMHO not an option.

(and even then better served by a "no translation" boolean than forgetting
about automatic conversions alltogether)



More information about the fpc-pascal mailing list