]> git.lyx.org Git - lyx.git/commitdiff
Better using a space instead of '\0' in the num_get facet.
authorEnrico Forestieri <forenr@lyx.org>
Wed, 29 Nov 2006 13:39:49 +0000 (13:39 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 29 Nov 2006 13:39:49 +0000 (13:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16103 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/docstring.C

index 68bb11b417c7faeedac42cc9ff5b8832724b006c..5e8d05f715bc852294f085f68a0402c94f624d11 100644 (file)
@@ -470,9 +470,9 @@ protected:
                        s += static_cast<char>(*iit);
                // We add another character, not part of the numpunct facet,
                // in order to avoid setting the eofbit in the stream state,
                        s += static_cast<char>(*iit);
                // We add another character, not part of the numpunct facet,
                // in order to avoid setting the eofbit in the stream state,
-               // which would prevent any further read. The '\0' seems a
+               // which would prevent any further read. The space seems a
                // good choice here.
                // good choice here.
-               s += '\0';
+               s += ' ';
                string_num_get_facet f;
                f.get(s.begin(), s.end(), b, err, v);
 
                string_num_get_facet f;
                f.get(s.begin(), s.end(), b, err, v);