[PATCH] getopt: Allow getopt_long to match translated option names

Bruno Haible bruno@clisp.org
Tue May 27 22:36:07 GMT 2025


[Dropping bug-standards from CC.]
Collin Funk wrote:
> Just adding that the getopt files contained in glibc and gnulib are
> mostly the same, IIRC. And since Gnulib intends to provide a getopt that
> is compatible with glibc these changes will also need to be added there.

Yes, if glibc adds this functionality to getopt, gnulib will want to
import that code from glibc. Because it does not make sense that a program
accepts localized option names on some systems and not on others —
that would be a documentation problem for that package as well as a
usability problem for its users.

> Bruno, this work since Gnulib requires copyright assignment, unlike
> glibc which accepts DCO without assignment. Do contributors to shared
> files need an assignment with Gnulib?

Correct, and thanks for pointing to it. Yes, this was stated in the
announcement [1]:
  "Code shared with other GNU packages via Gnulib will continue
   to require assignment to the FSF."

So, if glibc wants to accept Vivien's patch, Vivien will need to
exchange copyright papers with the FSF [2].

Bruno

[1] https://sourceware.org/pipermail/libc-alpha/2021-July/129577.html
[2] https://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html





More information about the Libc-alpha mailing list