------- Comment #4 from ivranos at freemail dot gr 2008-09-29 13:27 ------- (In reply to comment #2) > Target? Named locales are supported *only* on GNU/Linux systems.
Ubuntu 8.04 x86. I am learning the QT package, and for example its QString provides a toStdString() function that returns a std::string and a toStdWString() function that returns a std::wstring. The specific member function I have the problem: void MainWindow::saveFile() { using namespace std; QString fileName= QFileDialog::getSaveFileName(this, tr("Save file"), tr(""), tr("Text files (*.txt)")); if(!fileName.isEmpty()) { string cFileName= fileName.toStdString(); wofstream cFile(cFileName.c_str()); if(cFile.is_open()) { QString text= textEdit->toPlainText(); wstring writtenText= text.toStdWString(); cFile<< writtenText; } else QMessageBox::critical(this, "Unable to save file!", "The file could not be created!", QMessageBox::Close); } } My system *is* GNU/Linux. Apart from that, why "named locales are supported only on GNU/Linux systems"? MINGW doesn't accept them for example? In any case, my problem is in a GNU/Linux system. -- ivranos at freemail dot gr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED GCC target triplet| |Ubuntu 8.04 x86 Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37673