Eli Zaretskii wrote in <[email protected]>:
 |> Date: Sat, 12 Jan 2019 01:23:34 +0100
 |> From: Steffen Nurpmeso <[email protected]>
 |>|For platforms which don't have the Posix pathconf, maxfilename.cpp \
 |>|should try
 |>|harder, and look at (the ANSI-standard) FILENAME_MAX in addition to \
 |>|the other
 |>|varieties.  Right now, it decides that NAME_MAX is 14 on MS-Windows, \
 |>|which of
 |>|course makes no sense.  One adverse effect of this is that temporary file
 |>|names don't get the "groff" prefix, for no good reason.
 |> 
 |> Let me be plain one time.  The entire stuff that came in for
 |> Windows polluted the code enormously.
 |
 |I think FILENAME_MAX is Standard ANSI C symbol, so it can/should be

NAME_MAX was also ANSI C by Brian W. Kernighan and Dennis M. Ritchie.
ANSI C says

  NAME_MAX 14 /* longest filename-component; system-dependent */

  Filenames are limited to FILENAME_MAX characters.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to