string problems



In my program I'm reading lines from a file into a Glib::ustring:

std::string linetmp;
std::getline(source, linetmp);
line = linetmp;

I go through the std::string since AFAIK there's no getline for
Glib::ustring.

however when I try to output the line using
std::cout << line << "\n";
I get a Glib::ConvertError.
std::cout << linetmp << "\n";
works fine.

I tried using the following line (I'm trying to write an assembler):
add     𝔐, v1, v2
lines containing ASCII only work fine.

Philipp



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]