C++ Logo

sg16

Advanced search

Re: [SG16-Unicode] SG16 approval for LEWG to review std::filesystem::path_view

From: Tom Honermann <tom_at_[hidden]>
Date: Sat, 6 Jul 2019 17:46:04 -0400
On 7/4/19 12:23 PM, Lyberta wrote:
> I think NUL-terminated strings are a big mistake of C and newer Unicode
> library shouldn't use them.
Agreed.
> std::basic_string already breaks invariants
> by allowing embedded NULs.
>
> I know that it will take a while for operating systems to stop using NUL
> terminated strings but WebAssemply System Interface already fixed that
> by using pointer and size. I expect all future OSes not to use
> NUL-terminated strings.

I can't imagine any existing operating systems will discontinue support
for interfaces that require null terminated strings. It sure would be
nice if they all added new interfaces though!

Tom.

Received on 2019-07-06 23:46:06