Re: [fpc-pascal] GetEnv and large strings.

2017-02-16 Thread Jonas Maebe
On 16/02/17 20:57, duilio foschi wrote: Which is the kosher function GetEnv that wont truncate large strings ? SysUtils.GetEnvironmentVariable: http://www.freepascal.org/docs-html/rtl/sysutils/getenvironmentvariable.html Jonas ___ fpc-pascal mail

[fpc-pascal] GetEnv and large strings.

2017-02-16 Thread duilio foschi
I am using Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64 I created a few CGIs and discovered that function GetEnv(envvar: string):string; in unit Dos returns up to 256bytes (only). I need GetEnv to