aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2003-04-12 18:07:06 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-04-12 18:07:06 +0000
commit2bd020439ad63aa78333cf0e66f6b8ca0b63685c (patch)
tree5dc781e893303cba5531a0313f6b03e3fbcd2c77 /gcc/cp/call.c
parent48ed72a399f21ba568bb51bdc70829cbace8ebff (diff)
downloadgcc-2bd020439ad63aa78333cf0e66f6b8ca0b63685c.zip
gcc-2bd020439ad63aa78333cf0e66f6b8ca0b63685c.tar.gz
gcc-2bd020439ad63aa78333cf0e66f6b8ca0b63685c.tar.bz2
configure.in: Check for wchar.h, mbstowcs, and wcswidth.
* configure.in: Check for wchar.h, mbstowcs, and wcswidth. * configure, config.in: Regenerate. * intl.c (gcc_gettext_width): New function. * intl.h: Prototype it. cp: * call.c (print_z_candidates): Use gcc_gettext_width, not strlen, to determine how much padding to use. From-SVN: r65517
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index fd669f8..d70b1a1 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -2508,9 +2508,9 @@ print_z_candidates (struct z_candidate *candidates)
print_z_candidate (str, candidates);
if (candidates->next)
{
- /* Indent successive candidates by the length of the translation of
- the above string. */
- size_t len = strlen (str) + 1;
+ /* Indent successive candidates by the width of the translation
+ of the above string. */
+ size_t len = gcc_gettext_width (str) + 1;
char *spaces = alloca (len);
memset (spaces, ' ', len-1);
spaces[len] = '\0';