[gs-devel] Re: [Artifex-tech] What is a reasonable value for
'gp_file_name_sizeof'
Igor V. Melichev
igor.melichev at artifex.com
Mon Aug 27 13:26:18 PDT 2007
> Just to throw out a number, I suggest 2048 bytes (I didn't want to
> go too large since many of these are stack based (automatic).
Well I think we need to test it in Linux, Windows and Mac
before making a decision.
I think enlarging the current limit in 2 times
would be enough, unless a specific customer requests more.
Igor.
----- Original Message -----
From: "Ray Johnston" <Ray.Johnston at Artifex.com>
To: "tech" <tech at artifex.com>
Cc: "gs-devel" <gs-devel at ghostscript.com>
Sent: Monday, August 27, 2007 10:43 PM
Subject: [Artifex-tech] What is a reasonable value for 'gp_file_name_sizeof'
> All,
>
> In looking into a support issue for a customer (#1), I noticed that
> src/gp.h has '#define gp_file_name_sizeof 260' with a comment that
> this is the maximum size for Windows.
>
> This strikes me as extremely unlikely to be the Windows limit (at
> least since Windows 98 added long file name support).
>
> This also strikes me as something that could cause problems on
> many systems where the paths get quite long.
>
> This value is shared among 34 modules so modifying them all to
> switch to dynamically allocated strings is probably more work
> than we need to do (since, AFAIK, we don't have current bugs),
> but increasing this to a value that is more reasonable on today's
> OS's seems warranted.
>
> Please weigh in on what value we should use, and if you know of any
> OS that has a limitation, please mention it.
>
> Just to throw out a number, I suggest 2048 bytes (I didn't want to
> go too large since many of these are stack based (automatic).
>
> Regards,
> Ray
> ------------------------------------------------------------------------
>
> _______________________________________________
> Artifex-tech mailing list
> Artifex-tech at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/artifex-tech
More information about the gs-devel
mailing list