Monday, September 5, 2016

Digest for comp.lang.c++@googlegroups.com - 21 updates in 3 topics

Paavo Helde <myfirstname@osa.pri.ee>: Sep 05 10:03PM +0300

On 5.09.2016 17:13, Alf P. Steinbach wrote:
>>> limitations on filenames etc.
 
>> Care to bring some examples?
 
> std::ofstream f( utf8_file_path ); // OK in *nix, ungood in Windows.
 
Just tested this in Windows and it created the expected file ('(c)
abc.txt') nicely.
 
#include <string>
#include <iostream>
#include <fstream>
 
#ifdef _WIN32
typedef std::wstring ExternalString;
#else
typedef std::string ExternalString;

No comments: