Write UTF-8 bytes directly to stack buffer
Brian Callahan
bcallah at openbsd.org
Sun Mar 13 12:02:21 UTC 2022
On Sunday, 13 March 2022 at 07:55:01 UTC, Chris Piker wrote:
>
> Hey thanks! That does work with recent versions of dmd+phobos,
> but doesn't work in gdc-10. For some reason it produces this
> error:
>
> ```d
> error: static assert "Cannot put a const(char)[] into a
> char[]."
> ```
>
> Is there a work around involving `.representation` as alluded
> to in this
> [thread](https://forum.dlang.org/post/zmehmpithifbgfuefchv@forum.dlang.org) ?
>
> To get around the issue I built gdc-11.2 from source code at
> the GNU site but the old version of phobos is still included,
> so no dice.
Build the latest gdc snapshot:
https://mirrors.concertpass.com/gcc/snapshots/12-20220306/
~Brian
More information about the Digitalmars-d-learn
mailing list