Re: KEncodingProber vs "unexisting" codecs

2015-07-03 Thread David Faure
On Friday 03 July 2015 01:18:33 Albert Astals Cid wrote: > Question is, where do we want that? Do we want it on probing time so we > don't try to probe codecs that don't exist (for this installation), or > should we actually mention in the docs that it may happen that the returned > codec does not

Re: KEncodingProber vs "unexisting" codecs

2015-07-02 Thread Albert Astals Cid
El Dissabte, 6 de juny de 2015, a les 10:30:52, David Faure va escriure: > On Sunday 24 May 2015 07:18:21 Albert Astals Cid wrote: > > One of the codecs that KEncodingProber can return is x-euc-tw > > > > But neither the Qt4 nor the Qt5 installed in my distribution understand > > that codec, so do

Re: KEncodingProber vs "unexisting" codecs

2015-06-06 Thread David Faure
On Sunday 24 May 2015 07:18:21 Albert Astals Cid wrote: > One of the codecs that KEncodingProber can return is x-euc-tw > > But neither the Qt4 nor the Qt5 installed in my distribution understand that > codec, so doing the suggested > > QTextCodec::codecForName(prober.encoding())->toUnicode(dat

Re: KEncodingProber vs "unexisting" codecs

2015-05-24 Thread Albert Astals Cid
El Diumenge, 24 de maig de 2015, a les 16:57:38, Aleix Pol va escriure: > On Sun, May 24, 2015 at 7:18 AM, Albert Astals Cid wrote: > > One of the codecs that KEncodingProber can return is x-euc-tw > > > > But neither the Qt4 nor the Qt5 installed in my distribution understand > > that codec, so

Re: KEncodingProber vs "unexisting" codecs

2015-05-24 Thread Aleix Pol
On Sun, May 24, 2015 at 7:18 AM, Albert Astals Cid wrote: > One of the codecs that KEncodingProber can return is x-euc-tw > > But neither the Qt4 nor the Qt5 installed in my distribution understand that > codec, so doing the suggested > > QTextCodec::codecForName(prober.encoding())->toUnicode(da

KEncodingProber vs "unexisting" codecs

2015-05-23 Thread Albert Astals Cid
One of the codecs that KEncodingProber can return is x-euc-tw But neither the Qt4 nor the Qt5 installed in my distribution understand that codec, so doing the suggested QTextCodec::codecForName(prober.encoding())->toUnicode(data); Will crash. Not good. Two ways to fix this that i can think