This is an archive of the discontinued LLVM Phabricator instance.

[libc++][format] Add a CMake Unicode option.
ClosedPublic

Authored by Mordante on May 30 2021, 5:16 AM.

Details

Summary

This option is used to select between the format headers output column
width option. This option should be independent of the locale setting.
It's encouraged to default to Unicode unless the platform doesn't offer
that option.

[format.string.std]/10

For the purposes of width computation, a string is assumed to be in a
locale-independent, implementation-defined encoding. Implementations
should use a Unicode encoding on platforms capable of displaying Unicode

Diff Detail

Event Timeline

Mordante created this revision.May 30 2021, 5:16 AM
Mordante requested review of this revision.May 30 2021, 5:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2021, 5:16 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante updated this revision to Diff 348690.May 30 2021, 5:20 AM

Reupload to fix the build breakage. The patch should be stand-alone but seems
to have an issue to apply the patch when not part of the series.

Mordante updated this revision to Diff 349320.Jun 2 2021, 10:29 AM

Rebase.
Fixes minor grammar error in comment.

Mordante edited the summary of this revision. (Show Details)Jun 5 2021, 4:10 AM
Mordante added reviewers: curdeius, ldionne, miscco, vitaut.
Mordante updated this revision to Diff 354747.Jun 27 2021, 7:31 AM
Mordante edited the summary of this revision. (Show Details)

Rebase so next patches in the series get the changes done in the previous patches.

Mordante updated this revision to Diff 357278.Jul 8 2021, 10:49 AM

Rebase so other patches in the series use the same base.

vitaut accepted this revision.Jul 11 2021, 9:13 AM

LGTM

Mordante updated this revision to Diff 359102.Jul 15 2021, 1:17 PM

Rebase to get changes in the rest of the patch series.

ldionne accepted this revision.Jul 28 2021, 9:35 AM
ldionne added inline comments.
libcxx/CMakeLists.txt
122–125

I would not mention the special behavior of <format> specifically, since eventually there will be more that depends on this option.

This revision is now accepted and ready to land.Jul 28 2021, 9:35 AM
Mordante updated this revision to Diff 363540.Aug 2 2021, 12:01 PM

Rebase against main.

Mordante marked an inline comment as done.Sep 4 2021, 2:53 AM
This revision was automatically updated to reflect the committed changes.