diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/call.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a272d5e..1b13649 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-04-12 Zack Weinberg <zack@codesourcery.com> + + * call.c (print_z_candidates): Use gcc_gettext_width, not + strlen, to determine how much padding to use. + 2003-04-10 Zack Weinberg <zack@codesourcery.com> * decl.c: Update all calls to shadow_warning. 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'; |