[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #17 from Jonathan Wakely --- Author: redi Date: Fri Mar 17 19:28:42 2017 New Revision: 246247 URL: https://gcc.gnu.org/viewcvs?rev=246247=gcc=rev Log: Backport fixes from trunk Fix alignment bugs in std::codecvt_utf16 *

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #16 from Jonathan Wakely --- Author: redi Date: Fri Mar 17 19:28:29 2017 New Revision: 246246 URL: https://gcc.gnu.org/viewcvs?rev=246246=gcc=rev Log: Backport fixes from trunk Fix alignment bugs in std::codecvt_utf16 *

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #15 from Jonathan Wakely --- Author: redi Date: Thu Mar 16 15:27:45 2017 New Revision: 246199 URL: https://gcc.gnu.org/viewcvs?rev=246199=gcc=rev Log: PR libstdc++/79511 fix endianness of UTF-16 data PR libstdc++/79511

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 Jonathan Wakely changed: What|Removed |Added Keywords||patch --- Comment #14 from Jonathan

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 Jonathan Wakely changed: What|Removed |Added CC||cantabile.desu at gmail dot com ---

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #12 from Jonathan Wakely --- And this is the fix for comment 3: --- a/libstdc++-v3/src/c++11/codecvt.cc +++ b/libstdc++-v3/src/c++11/codecvt.cc @@ -315,7 +315,7 @@ namespace { static_assert(sizeof(C) >= 2, "a code unit must

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-03-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #11 from Jonathan Wakely --- I think this is the fix for comment 9: --- a/libstdc++-v3/src/c++11/codecvt.cc +++ b/libstdc++-v3/src/c++11/codecvt.cc @@ -1483,7 +1483,11 @@ do_in(state_type&, const extern_type* __from, const

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 Jonathan Wakely changed: What|Removed |Added Status|WAITING |NEW --- Comment #10 from Jonathan

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-21 Thread mikhail at pilin dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #9 from ww898 --- #include #include #include #include int main() { static char const src[] = "\xE2\x82\xAC"; std::wstring_convert conv; auto const dst = conv.from_bytes(src); std::cout <<

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 Jonathan Wakely changed: What|Removed |Added Status|NEW |WAITING --- Comment #8 from Jonathan

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-14 Thread mikhail at pilin dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #7 from ww898 --- Yes, I have: https://github.com/ww898/utf-cpp. To make errors please uncomment here: https://github.com/ww898/utf-cpp/blob/master/test/utf_converters_test.cpp#L781 P.S. It is possible to use no library version of

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #6 from Jonathan Wakely --- I disagree with the cppreference docs. The standard says: "If (Mode & little_endian), the facet shall generate a multibyte sequence in little-endian

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-14 Thread mikhail at pilin dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #5 from ww898 --- The question about std::little_endian is still alive... MSVC 2013/2015/2017, Clang 3.4/3.8 work on little endian computers x86/x86_64 and have little endian by default.

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 Jonathan Wakely changed: What|Removed |Added Status|WAITING |NEW --- Comment #4 from Jonathan

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-14 Thread mikhail at pilin dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #3 from ww898 --- Repro: std::wstring_convert> _Conv; std::string _Src("\xEF\xBF\xBF"); auto const _Dst = _Conv.from_bytes(&*_Src.begin(), &*_Src.end()); if

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-14 Thread mikhail at pilin dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 --- Comment #2 from ww898 --- $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 16.04.2 LTS Release:16.04 Codename: xenial $ uname -a Linux 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013

[Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16

2017-02-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|