https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88507

            Bug ID: 88507
           Summary: utf8 not displayed
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jg at jguk dot org
  Target Milestone: ---

Hello

This is an typo in the word "string", just reporting as perhaps it could show £
correctly, as it does on line 10 error. Perhaps could also show the stray bytes
in hex as well? ie "0xF3C2"

$ g++ -Wall -o string string.cpp
string.cpp:8:7: error: stray ‘\302’ in program
     st��ing buf;
       ^
string.cpp:8:8: error: stray ‘\243’ in program
     st��ing buf;
        ^
string.cpp: In function ‘int main()’:
string.cpp:8:5: error: ‘st’ was not declared in this scope
     st£ing buf;
     ^~
string.cpp:10:5: error: ‘buf2’ was not declared in this scope
     buf2 = "£"
     ^~~~



// g++ -Wall -o string string.cpp
#include <string>

using namespace std;

int main()
{
    st£ing buf;

    buf = "£"
}

Reply via email to