New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QSC file in the folder containing non-ASCII characters causes problem when reading externally linked files. #110

Closed
ishitani opened this Issue Jul 25, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@ishitani
Contributor

ishitani commented Jul 25, 2016

Boost.filesystemのpath変形methodがUTF8文字列をstoreすると正常に動作しなくなっている.昔はこのような問題は起こってなかったが,boost側あるいは,VCのC Rumtime側がlocale awareになってしまったため発生したらしい.解決策は現在のところない.localeをimbueすると,path object自体にUCS16で格納されるようになることから,他のメソッドが正しく動かなくなってしまっているように見える.

@ishitani ishitani added the bug label Jul 25, 2016

@ishitani ishitani added this to the Release 2.2.2.B milestone Jul 25, 2016

@ishitani

This comment has been minimized.

Contributor

ishitani commented Jul 26, 2016

Fixed by calling the path class's static member method imbue() to set the UTF-8 codecvt facet object (utf8_codecvt_facet) as the global codecvt object, in qlib's initialization routine (qlib::init()). As a result, the path name in the boost's path object is now stored in UCS16 encoding in the windows version (and converted to UTF8 in string() method, etc).

@ishitani ishitani closed this Jul 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment