
On 01/19/2011 09:50 AM, Artyom wrote:
... elision by patrick ... Take a look on this code:
http://art-blog.no-ip.info/files/nowide.zip building test failed on my linux box with gcc 4.6. Is it supposed to work here?
2/2 Testing: test_streambuf 2/2 Test: test_streambuf Command: "/usr/local/downloads/tmp/nowide/test_streambuf" Directory: /usr/local/downloads/tmp/nowide "test_streambuf" start time: Jan 19 20:58 PST Output: ---------------------------------------------------------- Testing input device Testing input device, small buffer Testing output device Testing output device, small buffer size Testing output device, reset Testing seek fault Testing tell fault Testing random access device Error /usr/local/downloads/tmp/nowide/test/test_streambuf.cpp:231 int(io.tellg())==4 <end of output> Test time = 0.01 sec ---------------------------------------------------------- Test Failed. "test_streambuf" end time: Jan 19 20:58 PST "test_streambuf" time elapsed: 00:00:00 ---------------------------------------------------------- End testing: Jan 19 20:58 PST
This is the code I use for my projects that implements what I'm talking about - simple easy to use straightforward.
Also don't forget two things:
1. Microsoft Deprecated ANSI API and does not recommend to use it.
If the only OS that gives us most of the encodings headache deprecated ANSI API I don't think that Boost should continue supporting it.
2. All the world had already moved to Unicode, Microsoft did this as well.
They did it in their incompatible-with-rest-of-the-world way... But still they did it too - so we can continue ignoring the fact that UTF-8 is ultimate encoding or go forward.
Artyom
_______________________________________________ Unsubscribe& other changes: http://lists.boost.org/mailman/listinfo.cgi/boost