>From 3a0a66f7d6bc2f4791da6c3f6efeb499eed49465 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Thu, 22 Oct 2009 03:01:09 -0700 Subject: [PATCH] Fix error message output alignment for wide chars --- lily/source-file.cc | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/lily/source-file.cc b/lily/source-file.cc index fc5b034..96264fb 100644 --- a/lily/source-file.cc +++ b/lily/source-file.cc @@ -308,7 +308,12 @@ Source_file::get_counts (char const *pos_str0, else (*column)++; - (*line_char)++; + /* + For accurate error output, consider multibyte + characters as a series of characters. + */ + (*line_char) += thislen; + /* Advance past this character. */ line_chars += thislen; left -= thislen; -- 1.6.5.1