Re: [PATCH] Fix byte char and byte string lexing code

2021-09-23 Thread Philip Herron
Hi guys, Thanks, Thomas for raising the PR it is currently being merged. We will raise the next PR to get bootstrapable builds working which will be really nice there is a GitHub automation for that at the moment. Something I was thinking about outside of the scope of that patch was about the utf

Re: [PATCH] Fix byte char and byte string lexing code

2021-09-23 Thread Arthur Cohen via Gcc-rust
> Something I was thinking about outside of the scope of that patch was about the utf8 how do they get represented? Is it some kind of wchar_t? Do you mean in C++ or in rustc? In rustc, they are represented as Unicode Scalar Values which are 4 bytes wide. >From the docs over here: [https://doc.ru

byte/char string representation (Was: [PATCH] Fix byte char and byte string lexing code)

2021-09-23 Thread Mark Wielaard
On Thu, Sep 23, 2021 at 04:10:59PM +0200, Arthur Cohen wrote: > > Something I was thinking about outside of the scope of that patch was > about the utf8 how do they get represented? Is it some kind of wchar_t? > > Do you mean in C++ or in rustc? In rustc, they are represented as Unicode > Scalar V