On quinta-feira, 24 de janeiro de 2013 16.20.37, Joshua Grauman wrote: > I'm not sure I completely understand your question, but I'll give it a > shot. I had a global variable as follows (bad style, I know). It seems > pointless I know, but it's because I also have other custom > implementations of QTextCodec that get instantiated right next to it, so I > just put them all together. > > QTextCodec *Ecodec = QTextCodec::codecForName("UTF-8"); > > So since this was a global variable, it gets called before > QCoreApplication, and I'm assuming that's why it returns 0. Does that > help?
No, because you had already told me that :-) I know it returns 0. Your hypothesis is that it returns 0 because it was called before QCoreApplication was initialised, which you've been able to prove to be the case. But I looked at the code and, at first glance, there was nothing to indicate why that would be the behaviour. What I want to know is why that behaviour is so. Where, in the code inside Qt, does it make a decision that gets it a null, instead of the proper codec? -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest