re PR fortran/36160 (show_locus doesn't deal well with wide characters)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 4 Mar 2012 14:35:56 +0000 (14:35 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 4 Mar 2012 14:35:56 +0000 (14:35 +0000)
commita5d6c7540ae44bc8fb2f4ca2aba5f16420b574a2
tree82c0a8937026e7006001e06651a39cd00f27d7a2
parentc8191119d6481dd0e3ba4fcf2bbcbc662e0c278a
re PR fortran/36160 (show_locus doesn't deal well with wide characters)

PR fortran/36160
* error.c (gfc_widechar_display_length, gfc_wide_display_length):
New functions.
(print_wide_char_into_buffer): Return length written.
(show_locus): Fix locus displayed when wide characters are present.

From-SVN: r184884
gcc/fortran/ChangeLog
gcc/fortran/error.c