------- Comment #1 from burnus at gcc dot gnu dot org 2010-08-04 10:19 ------- Created an attachment (id=21392) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21392&action=view) Test case in UTF-8 encoding
Compile with: gfortran -cpp -finput-charset=UTF-8 wide.f90 Expected output: Hello World = 你好 你好 Currently, the second line is wrong; the two Chinese characters Ni (you) and Hao (good) [ni hao = hello, good morning/afternoon] are split into six one-byte characters as len() shows. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45179