<div dir="ltr">Ideally, we need 3 separate things:<div><br></div><div>1/ A way to read/write byte streams</div><div>2/ A way to transcode to/from non-unicode encoding</div><div>3/ A way to determine the encoding expected by a given stream.</div><div><br></div><div>The later is in the general case not possible, and it might not be generically possible for simple things like console i/o.</div><div>I think the only sane way forward is to by default assume utf8 everywhere and work with os vendors to ensure they have the same defaults.</div><div><br></div><div>I think 1/ falls entirely outside of the scope of SG16</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Feb 2019 at 10:05 Peter Bindels &lt;<a href="mailto:peterbindels@gmail.com">peterbindels@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Was this not most of what Niall Douglas&#39; proposal was for alternate memory? <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Feb 2019 at 09:12, Bryce Adelstein Lelbach aka wash &lt;<a href="mailto:brycelelbach@gmail.com" target="_blank">brycelelbach@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I agree; a new io library is a high priority thing for me.</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Feb 3, 2019, 5:44 AM Lyberta &lt;<a href="mailto:lyberta@lyberta.net" target="_blank">lyberta@lyberta.net</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Since we introduced char8_t but not char8_t-based streams, early users<br>
of char8_t will face significant difficulties working with char8_t based<br>
data. I think we should let iostreams die and think of something simpler<br>
that uses std::byte and then build text I/O on top of it.<br>
<br>
Ideas?<br>
<br>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" rel="noreferrer" target="_blank">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div>