From a8f47cc80002e17a3c4fea13ba0bd27ba0651326 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 16 Jun 2016 11:53:11 +0000 Subject: [PATCH] Remove CloudABI specific workaround. CloudABI has gained the mblen_l() function in the meantime that does properly return whether the character set has shift-states (read: never). git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272886 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/locale.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/locale.cpp b/src/locale.cpp index bc2427bfc..da2fd1167 100644 --- a/src/locale.cpp +++ b/src/locale.cpp @@ -1660,10 +1660,8 @@ codecvt::do_unshift(state_type& st, int codecvt::do_encoding() const _NOEXCEPT { -#ifndef __CloudABI__ if (__libcpp_mbtowc_l(nullptr, nullptr, MB_LEN_MAX, __l) != 0) return -1; -#endif // stateless encoding if (__l == 0 || __libcpp_mb_cur_max_l(__l) == 1) // there are no known constant length encodings