I use Avogadro only on Windows (Japanese version).
I tried to open a molecular file which name or path included Japanese
letters
(hiragana, katakana or kanji) on Avogadro, but a message box such that
"Reading molecular file faild: C:/.../(Japanese letters)/.../molecule.cml"
appeared, and failed to open.
For a file which name or path consists of only roman letters, things went
well !
It is not only for my own built Avogadro (with Qt 4.6.3 opensource and VC
2005 EE on (stale) Win XP), but also for installed application with a
distributed installer (Avogadro-1.1.1-win32.exe).
This phenomenon also occurred for two different Win XP machines.
On the other hand, avogadro application which built from the edited sources
(as described in the previous mail) can read a molecular file which name or
path include Japanese letters without difficulties !
I also found that
QTextCodec::setCodecForCStrings(QTextCodec::codecForLoocale());
QTextCodec::SetCodecForTr(QTextCodec::codecForLocale());
are not nessesary.
But
std::locale::global(std::locale("japanese"));
seems to be necessary.
I guess this phenomenon may not come from avogadro, but from other
libraries ( openbabel etc. ), or compatibility of avogadro or libraries
with Windows.
Thank you very much, Prof. Geoff !
Regards.
iwao
------------------------------------------------------------------------------
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel