* 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:
Vladimir 'phcoder' Serbinenko committed 2012-02-26 19:07:59 +01:00
1 parent 7e8fac16ad
commit 585031cb92
4 files changed
+82 -14

No files matched your search

+3
View File
@@ -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