[fpc-pascal] Executing external processes and codepages
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed May 11 13:55:59 CEST 2016
Michael Van Canneyt wrote on Wed, 11 May 2016:
> On Wed, 11 May 2016, Jonas Maebe wrote:
>
>>
>> Michael Van Canneyt wrote on Wed, 11 May 2016:
>>
>>> On Wed, 11 May 2016, Jonas Maebe wrote:
>>>
>>>>
>>>> Michael Van Canneyt wrote on Wed, 11 May 2016:
>>>>
>>>>> And in the case it makes an assumption of the code page, regardless of
>>>>> environment variables ?
>>>>>
>>>>> (don't say that doesn't happen. It does, I know a programmer
>>>>> that does so)
>>>>
>>>> The caller can work around such bugs by either
>>>> a) using the pchar version of fpexec, or
>>>> b) specifying the code page that this target program uses in the
>>>> environment used to invoke it
>>>
>>> a) obviously
>>> b) As said, the target program completely ignores the environment.
>>
>> b) is exactly why you have to specify the code page that this
>> *target program* uses in the environment when executing it, so that
>> the invoking FPC program will convert the parameters to this code
>> page.
>
> You are now assuming that this is possible. This may not be the case.
Why would it not be possible? Please be more concrete, because right
now I feel like I'm arguing against my own imagination, which is not
very useful.
Jonas
More information about the fpc-pascal
mailing list