summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/IdentifyTextCodecDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/IdentifyTextCodecDialog.cpp')
-rw-r--r--src/gui/dialogs/IdentifyTextCodecDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/IdentifyTextCodecDialog.cpp b/src/gui/dialogs/IdentifyTextCodecDialog.cpp
index 0a0dbd1..a3d905d 100644
--- a/src/gui/dialogs/IdentifyTextCodecDialog.cpp
+++ b/src/gui/dialogs/IdentifyTextCodecDialog.cpp
@@ -160,7 +160,7 @@ IdentifyTextCodecDialog::slotCodecSelected(int i)
// std::cerr << "codecs: ";
// for (int j = 0; j < m_codecs.size(); ++j) std::cerr << m_codecs[j] << " ";
// std::cerr << std::endl;
- TQTextCodec *codec = TQTextCodec::codecForName(strtoqstr(name));
+ TQTextCodec *codec = TQTextCodec::codecForName(strtoqstr(name).ascii());
if (!codec) return;
m_codec = qstrtostr(codec->name());
std::cerr << "Applying codec " << m_codec << std::endl;