Santhu / mozc

Automatically exported from code.google.com/p/mozc
0 stars 0 forks source link

Please make g_language_dependent_spec really global #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run mozc_tool with QT_IM_MODULE=uim when uim-mozc is installed and used as 
default method
2. mozc_tool will crash

What is the expected output? What do you see instead?
not crash

What version of the product are you using? On what operating system?
Fedora 15, Mozc r87

Please provide any additional information below.
libuim-mozc.so is loaded by dlopen() within mozc_tool.  Because 
g_language_dependent_spec is not global, mozc_tool returns NULL with 
language::GlobalLanguageSpec::GetLanguageDependentSpec() in some timings even 
libuim-mozc.so set the lang_spec beforehand.

Removing anonymous namespace of g_language_dependet_spec and extern it solve 
the problem, I think.

Original issue reported on code.google.com by ek.k...@gmail.com on 12 Jan 2012 at 2:45

GoogleCodeExporter commented 9 years ago
Thank you for reporting,

I'm sorry we can not follow-up uim-mozc package, but we have plan to refactor 
language spec module in future(maybe GlobalLanguageSpec will be deprecated).

Regards.

Original comment by n...@google.com on 12 Jan 2012 at 5:31

GoogleCodeExporter commented 9 years ago
I also thought the language spec looked tentative one.  Thanks for your 
explanation.  Looking forward to your upcoming release.

Original comment by ek.k...@gmail.com on 12 Jan 2012 at 6:03

GoogleCodeExporter commented 9 years ago
Fixed in r105.
Thank you again for taking your time to report this issue.

Original comment by yukawa@google.com on 26 Mar 2012 at 10:23