<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021 at 8:26 PM Tom Honermann via SG16 &lt;<a href="mailto:sg16@lists.isocpp.org">sg16@lists.isocpp.org</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>
    <div>Corentin submitted a LWG issue for the
      concern about <tt>std::format()</tt> using the locale for chrono
      format specifiers.  We&#39;ll address this first and then continue
      discussion of P2093.</div>
    <div>
      <ul>
        <li><a href="https://cplusplus.github.io/LWG/lwg-active.html#3547" target="_blank">LWG3547:
            Time formatters should not be locale sensitive by default</a><br>
        </li>
      </ul>
    </div>
    <div>Tom.</div></div></blockquote><div><br></div><div>Thanks Tom for staying on top of things :)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
    </div>
    <div>On 4/27/21 11:58 AM, Tom Honermann via
      SG16 wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div>Despite this message likely getting
        lost in the flurry of messages within this email thread over the
        last 12 hours or so, here is your reminder that this telecon
        will be taking place tomorrow.</div>
      <div><br>
      </div>
      <div>Corentin submitted a <a href="https://wg21.link/p2295r3" target="_blank">revision
          of P2295</a> with wording updates intended to address feedback
        from our <a href="https://github.com/sg16-unicode/sg16-meetings#april-14th-2021" target="_blank">last
          telecon</a>.  So, if time permits after discussion of <a href="https://wg21.link/p2093r5" target="_blank">P2093R5</a>,
        then we&#39;ll revisit it.  Otherwise, it will be the first item on
        the agenda for the following telecon.  I expect that we won&#39;t
        get to <a href="https://wg21.link/p2348r0" target="_blank">P2348R0</a>.<br>
      </div>
      <div><br>
      </div>
      <div>Revised agenda:</div>
      <div>
        <ul>
          <li><a href="https://wg21.link/p2093r5" target="_blank">P2093R5:
              Formatted output</a></li>
          <li><a href="https://wg21.link/p2295r3" target="_blank">P2295R3:
              Support for UTF-8 as a portable source file encoding</a></li>
          <li><a href="https://wg21.link/p2348r0" target="_blank">P2348R0:
              Whitespaces Wording Revamp</a></li>
        </ul>
      </div>
      <div>Tom.<br>
      </div>
      <div><br>
      </div>
      <div>On 4/19/21 10:58 AM, Tom Honermann
        via SG16 wrote:<br>
      </div>
      <blockquote type="cite">
        
        <p>SG16 will hold a telecon on Wednesday, April 28th at 19:30
          UTC (<a href="https://www.timeanddate.com/worldclock/converter.html?iso=20210428T193000&amp;p1=1440&amp;p2=tz_pdt&amp;p3=tz_mdt&amp;p4=tz_cdt&amp;p5=tz_edt&amp;p6=tz_cest" target="_blank">timezone
            conversion</a>).</p>
        <p>The agenda is:</p>
        <ul>
          <li><a href="https://wg21.link/p2093r5" target="_blank">P2093R5:
              Formatted output</a></li>
          <li><a href="https://isocpp.org/files/papers/P2348R0.pdf" target="_blank">P2348R0:
              Whitespaces Wording Revamp</a><br>
          </li>
        </ul>
        <p>LEWG discussed P2093R5 at their 2021-04-06 telecon and
          decided to refer the paper back to SG16 for further
          discussion.  LEWG meeting minutes are available <a href="https://wiki.edg.com/bin/view/Wg21telecons2021/P2093#Library-Evolution-2021-04-06" target="_blank">here</a>;
          please review them prior to the telecon.  LEWG reviewed the
          list of prior SG16 deferred questions posted to them <a href="http://lists.isocpp.org/lib-ext/2021/03/18189.php" target="_blank">here</a>. 
          Of those, they established consensus on an answer for #2 (they
          agreed not to block <tt>std::print()</tt> on a proposal for
          underlying terminal facilities), but referred the rest back to
          us.  My interpretation of their actions is that LEWG would
          like a revision of the paper to address these concerns based
          on SG16 input (e.g., discuss design options and SG16 consensus
          or lack thereof).  We&#39;ll therefore focus on these questions at
          this telecon.</p>
        <p>Hubert provided the following very interesting example usage.</p>
        <p><tt>std::print(&quot;{:%r}\n&quot;,
            std::chrono::system_clock::now().time_since_epoch());</tt></p>
        <p>At issue is the encoding used by locale sensitive chrono
          formatters.  Search <a href="http://eel.is/c++draft/time.format" target="_blank">[time.format]</a>
          for &quot;locale&quot; to find example chrono format specifiers that are
          locale dependent.  The example above contains the <tt>%r</tt>
          specifier and is locale sensitive because AM/PM designations
          may be localized.  In a Chinese locale the desired translation
          of &quot;PM&quot; is &quot;下午&quot;, but the locale will provide the translation
          in the locale encoding.  As specified in P2093R5, if the
          execution (literal) encoding is UTF-8, than <tt>std::print()</tt>
          will expect the translation to be provided in UTF-8, but if
          the locale is not UTF-8-based (e.g., Big5; perhaps Shift-JIS
          for the Japanese 午後 translation), then the result is mojibake.
          This is a good example of how locale conflates translation and
          character encoding.</p>
        <p>Addressing the above will be our first order of business. 
          Please reserve some time to independently think about this
          problem (ignore responses to this message for a few days if
          you need to).  I am explicitly not listing possible approaches
          to address this concern in this message so as to avoid adding
          (further) bias in any specific direction.  I suspect the
          answers to the previously deferred SG16 questions will be
          easier to answer once this concern is resolved.</p>
        <p>I do not intend to time limit discussion of P2093R5 as I
          believe this is an important matter to resolve.  If we are
          able to complete discussion of P2093R5, then we&#39;ll discuss
          P2348R0.<br>
        </p>
        <p>Tom.<br>
        </p>
        <br>
        <fieldset></fieldset>
      </blockquote>
      <p><br>
      </p>
      <br>
      <fieldset></fieldset>
    </blockquote>
    <p><br>
    </p>
  </div>

-- <br>
SG16 mailing list<br>
<a href="mailto:SG16@lists.isocpp.org" target="_blank">SG16@lists.isocpp.org</a><br>
<a href="https://lists.isocpp.org/mailman/listinfo.cgi/sg16" rel="noreferrer" target="_blank">https://lists.isocpp.org/mailman/listinfo.cgi/sg16</a><br>
</blockquote></div></div>

