Re: [patch] Experiment with c++11 unicode strings

2016-09-06 Thread Georg Baum
Guillaume Munch wrote: > Le 30/08/2016 à 21:12, Georg Baum a écrit : >> Guillaume Munch wrote: >> >>> >>> * Why ascii_num_get_facet::do_get uses from_local8bit at some >>> point. >> >> The encoding does not matter here: Our own numpunct_facet does not >> override truename() and falsename(), so

Re: [patch] Experiment with c++11 unicode strings

2016-08-30 Thread Guillaume Munch
Le 30/08/2016 à 21:12, Georg Baum a écrit : Guillaume Munch wrote: * Why ascii_num_get_facet::do_get uses from_local8bit at some point. The encoding does not matter here: Our own numpunct_facet does not override truename() and falsename(), so std::numpunct::truename() and

Re: [patch] Experiment with c++11 unicode strings

2016-08-30 Thread Georg Baum
Guillaume Munch wrote: > I made it work with libc++ too, which was not straightforward. In this > case, the template is undefined and cannot be inherited from. > > Could you or somebody else please double-check the following, which I am > not sure to understand correctly: > > * Why

Re: [patch] Experiment with c++11 unicode strings

2016-08-27 Thread Guillaume Munch
Le 25/08/2016 à 20:36, Georg Baum a écrit : Guillaume Munch wrote: Le 22/08/2016 à 20:56, Georg Baum a écrit : Our own facets work, and the implementation is confined to one file which nobody needs to look at (unless he wants to). I made it work with libc++ too, which was not

Re: [patch] Experiment with c++11 unicode strings

2016-08-25 Thread Georg Baum
Guillaume Munch wrote: > Le 22/08/2016 à 20:56, Georg Baum a écrit : >> Guillaume Munch wrote: >> >>> This is not the final version >>> of the patch however because there is one big disappointment: the C++11 >>> standard does not require several facets (including ctype) >>> that are necessary to

Re: [patch] Experiment with c++11 unicode strings

2016-08-22 Thread Guillaume Munch
Le 22/08/2016 à 20:56, Georg Baum a écrit : Guillaume Munch wrote: This is not the final version of the patch however because there is one big disappointment: the C++11 standard does not require several facets (including ctype) that are necessary to use stringstreams of char32_t. So these need

Re: [patch] Experiment with c++11 unicode strings

2016-08-22 Thread Georg Baum
Guillaume Munch wrote: > Dear all, > > Here's a few patches proposing to improve the definitions in > support/strfwd.h, results of my experiments. > > 1. Define docstring using the Unicode strings from C++11 (with > char_type=char32_t). This allows us to write docstrings directly with > the

[patch] Experiment with c++11 unicode strings

2016-08-21 Thread Guillaume Munch
Dear all, Here's a few patches proposing to improve the definitions in support/strfwd.h, results of my experiments. 1. Define docstring using the Unicode strings from C++11 (with char_type=char32_t). This allows us to write docstrings directly with the syntax U"". By extension this is necessary