<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [clang-cl] Predefine _MSVC_EXECUTION_CHARACTER_SET to the encoding for narrow string literals"
   href="https://bugs.llvm.org/show_bug.cgi?id=52549">52549</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[clang-cl] Predefine _MSVC_EXECUTION_CHARACTER_SET to the encoding for narrow string literals
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Casey@Carter.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>As of VS 2022 17.1 the MSVC compiler will predefine a macro
`_MSVC_EXECUTION_CHARACTER_SET` to the codepage corresponding to the encoding
used as the ordinary literal encoding (as defined in N4901 [lex.charset]/5).
For example, the value `65001` is used for UTF-8, and `1252` for the default
English Windows-1252 encoding. It would be nice if clang-cl could also
predefine this macro similarly.

If I understand correctly, clang-cl always uses UTF-8 as its ordinary literal
encoding (See PR41536) so this shouldn't be a big ask =)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>