[PATCH] D59727: [libc++] Fix return value of snprintf_l() on Windows when buffer is too small

Tom Anderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 27 11:30:37 PDT 2019


thomasanderson added a comment.

In D59727#1444922 <https://reviews.llvm.org/D59727#1444922>, @zoecarver wrote:

> Thanks for explaining. Would it work to call `setlocale()` then add just use `vsnprintf`?


Yes, in fact that's what the code path in the #else block does


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59727/new/

https://reviews.llvm.org/D59727





More information about the llvm-commits mailing list