<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 10/07/2018 06:32 PM, Victor
Zverovich wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANawtxbd-Qa3Rj78DtgvX9woDhQP+3vcW0o5PLwWMzkpSHqcsQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>> Existing programs depend on the
ability to dynamically change the execution encoding (within
reason) in order
for a server process to concurrently serve multiple clients
with different
locale settings.</div>
<div><br>
</div>
<div>This seems like a very weird use case because it
effectively limits server to processing requests on one
thread, since as mentioned elsewhere in the document
per-thread locale setting is still in the proposal phase. Do
you have any examples? In my experience changing locale
dynamically more often than not breaks programs' expectations.<br>
</div>
</div>
</blockquote>
<br>
I don't have specific examples to share. Code that does this pretty
much has to rely on extensions like POSIX uselocale() and
Microsoft's _configthreadlocale() since, as you note, taking a lock
to ensure global locale settings stay consistent effectively single
threads requests. A quick code search of github for these functions
has lots of hits, but many are duplicate hits (if there is a way to
get github to better suppress similar hits, I'd be curious to know
how to do that).<br>
<br>
I agree that dynamically changing locale is rarely a good thing to
do. It can be ok as part of program startup, but afterwards is
asking for trouble - same as changing other global state like
current working directory. I just mentioned it because, despite
likely being a bad idea, there is existing code that does it.<br>
<br>
Tom.<br>
<br>
<blockquote type="cite"
cite="mid:CANawtxbd-Qa3Rj78DtgvX9woDhQP+3vcW0o5PLwWMzkpSHqcsQ@mail.gmail.com"><br>
<div class="gmail_quote">
<div dir="ltr">On Tue, Oct 2, 2018 at 10:21 PM Tom Honermann
<<a href="mailto:tom@honermann.net" moz-do-not-send="true">tom@honermann.net</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Enclosed is
a draft of an SG16 direction paper to be discussed at our <br>
meeting tomorrow. It's rough, but I think in sufficient shape
for <br>
discussion.<br>
<br>
If we manage to get through that paper, we'll discuss the
paper Steve <br>
just posted to our mailing list [1] and/or Markus' feedback
paper [2].<br>
<br>
Tom.<br>
<br>
[1]: <a
href="http://www.open-std.org/pipermail/unicode/2018-October/000144.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.open-std.org/pipermail/unicode/2018-October/000144.html</a><br>
[2]: <br>
<a
href="https://docs.google.com/document/d/1aI0mBcH-d3BLjs8NRHgGECbA320LGFgo-SrNJ6VnLKE/edit"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://docs.google.com/document/d/1aI0mBcH-d3BLjs8NRHgGECbA320LGFgo-SrNJ6VnLKE/edit</a><br>
<br>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank"
moz-do-not-send="true">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>