This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Don't truncate intermediates to wchar_t when widening
ClosedPublic

Authored by mstorsjo on Oct 27 2020, 5:51 AM.

Details

Summary

On windows, wchar_t is 16 bit, while we might be widening chars to char32_t.

Diff Detail

Event Timeline

mstorsjo created this revision.Oct 27 2020, 5:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2020, 5:51 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript
mstorsjo requested review of this revision.Oct 27 2020, 5:51 AM
ldionne added inline comments.
libcxx/include/__locale
1410

Do you know why this was added in the first place? Did you try this out on non-windows systems without the cast?

mstorsjo added inline comments.Oct 27 2020, 10:41 AM
libcxx/include/__locale
1410

Not sure why it was there; it's been present since the initial libc++ commit. On linux at least, this change makes no difference in check-cxx.

ldionne accepted this revision.Oct 27 2020, 10:49 AM

Can you please rebase on top of master and update the diff? It will re-trigger the CI, which we should see passing. LGTM once that's done.

This revision is now accepted and ready to land.Oct 27 2020, 10:49 AM
ldionne accepted this revision.Oct 27 2020, 11:37 AM
ldionne added a subscriber: goncharov.

CI doesn't trigger a second time -- maybe it's because the diff hasn't changed, or because the revision was accepted. @goncharov Do you know?

In all cases, please feel free to ship it.

CI doesn't trigger a second time -- maybe it's because the diff hasn't changed, or because the revision was accepted. @goncharov Do you know?

Yes, in some cases revisions do not trigger herald rules at all (like this one) or have not repository set. I believe that individual configuration or how one uploads diff can cause that.
@mstorsjo have you used "arc" to create the second diff (rebased one)? Have you set any config parameters of it that might affect this?

In all cases, please feel free to ship it.