https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511
Jonathan Wakely changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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&root=gcc&view=rev
Log:
Backport fixes from trunk
Fix alignment bugs in std::codecvt_utf16
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&root=gcc&view=rev
Log:
Backport fixes from trunk
Fix alignment bugs in std::codecvt_utf16
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&root=gcc&view=rev
Log:
PR libstdc++/79511 fix endianness of UTF-16 data
PR libstdc++/7
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511
Jonathan Wakely changed:
What|Removed |Added
Keywords||patch
--- Comment #14 from Jonathan Wa
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511
Jonathan Wakely changed:
What|Removed |Added
CC||cantabile.desu at gmail dot com
--- Co
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 b
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
extern_typ
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |NEW
--- Comment #10 from Jonathan Wake
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 << std::hex << std::setw(4)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511
Jonathan Wakely changed:
What|Removed |Added
Status|NEW |WAITING
--- Comment #8 from Jonathan W
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 b
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 ord
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.
http://en.cppreference.com/w/cpp/locale/codecv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |NEW
--- Comment #4 from Jonathan Wakel
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 (_Dst.size() == 2)
std::cout << std::hex << (unsigned)_Dst[0] << ":" << (
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 x8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
18 matches
Mail list logo