* 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:
parent
7e8fac16ad
commit
585031cb92
4 changed files with 82 additions and 14 deletions
|
@ -335,6 +335,9 @@ __argp_fmtstream_point (argp_fmtstream_t __fs)
|
|||
return __fs->point_col >= 0 ? __fs->point_col : 0;
|
||||
}
|
||||
|
||||
size_t
|
||||
__argp_get_display_len (char *beg, char *end);
|
||||
|
||||
#if !_LIBC
|
||||
#undef __argp_fmtstream_putc
|
||||
#undef __argp_fmtstream_puts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue