mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 02:31:05 +00:00
* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
New function. (add_length): Likewise. (__argp_fmtstream_update): Handle strings with non-ASCII chars. * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New proto. * grub-core/gnulib/argp-help.c (argp_args_usage): Use __argp_get_display_len.
This commit is contained in:
1 parent
7e8fac16ad
commit
585031cb92
4 files changed
+82
-14
No files matched your search
@@ -1448,7 +1448,7 @@ argp_args_usage (const struct argp *argp, const struct argp_state *state,
|
||||
|
||||
/* Manually do line wrapping so that it (probably) won't get wrapped at
|
||||
any embedded spaces. */
|
||||
space (stream, 1 + nl - cp);
|
||||
space (stream, 1 + __argp_get_display_len (cp, nl));
|
||||
|
||||
__argp_fmtstream_write (stream, cp, nl - cp);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user