From c379f5c1df9bfd5ef4c28507e0dde8fb3027797f Mon Sep 17 00:00:00 2001 From: Daniel Knittl-Frank Date: Mon, 4 Oct 2010 15:02:14 +0200 Subject: [PATCH] output actual characters instead of codepoints --- C/create_dummy_file.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/C/create_dummy_file.cpp b/C/create_dummy_file.cpp index 6d0a858..f56cb7f 100644 --- a/C/create_dummy_file.cpp +++ b/C/create_dummy_file.cpp @@ -14,9 +14,10 @@ int main(int argc, char **argv) { ofstream f("test.txt"); - for(ustring::iterator it = s.begin(); - it != s.end(); ++it) { - f << *it << " " << flush; + // print each char on its own line + for(ustring::iterator it = us.begin(); + it != us.end(); ++it) { + f << '"' << ustring(1, *it).raw() << '"' << endl; } f.close(); -- 2.11.4.GIT