Re: [Development] A bug or not a bug, that's the question

2013-09-07 Thread Kurt Pattyn
Hi Thiago, to my (limited) knowledge, I only know of the existence of qtbase/src/corelib/codecs/qutfcodec.cpp. Could you indicate where the other copies are? Thanks On 05 Sep 2013, at 19:05, development-requ...@qt-project.org wrote: From: Thiago Macieira thiago.macie...@intel.com Subject:

Re: [Development] A bug or not a bug, that's the question

2013-09-07 Thread Thiago Macieira
On sábado, 7 de setembro de 2013 20:34:20, Kurt Pattyn wrote: to my (limited) knowledge, I only know of the existence of qtbase/src/corelib/codecs/qutfcodec.cpp. Could you indicate where the other copies are? qurlrecode.cpp qjsonparser.cpp qxmlstream.cpp -- Thiago Macieira - thiago.macieira

Re: [Development] A bug or not a bug, that's the question

2013-09-05 Thread Kurt Pattyn
From: Thiago Macieira thiago.macie...@intel.com Subject: Re: [Development] A bug or not a bug, that's the question Date: 26 Aug 2013 17:16:19 GMT+02:00 To: development@qt-project.org On segunda-feira, 26 de agosto de 2013 13:53:38, Kurt Pattyn wrote: We should remove the check. It was

Re: [Development] A bug or not a bug, that's the question

2013-09-05 Thread Konstantin Tokarev
05.09.2013, 15:46, Kurt Pattyn pattyn.k...@gmail.com:  From: Thiago Macieira thiago.macie...@intel.com  Subject: Re: [Development] A bug or not a bug, that's the question  Date: 26 Aug 2013 17:16:19 GMT+02:00  To: development@qt-project.org  On segunda-feira, 26 de agosto de 2013 13:53:38,

[Development] A bug or not a bug, that's the question

2013-08-26 Thread Kurt Pattyn
Hi, when implementing web sockets, I encountered a problem with the QTextCodec class. This is a code snippet: QTextCodec *codec = QTextCodec::codecForName(UTF-8) codec-toUnicode(someUtf8StringContainingNonCharacters, …); When toUnicode is called with a string containing Unicode non-character

Re: [Development] A bug or not a bug, that's the question

2013-08-26 Thread Christoph Feck
On Monday 26 August 2013 13:53:38 Kurt Pattyn wrote: QTextCodec *codec = QTextCodec::codecForName(UTF-8) codec-toUnicode(someUtf8StringContainingNonCharacters, …); When toUnicode is called with a string containing Unicode non-character codes, QTextCodec returns a conversion error. [...]

Re: [Development] A bug or not a bug, that's the question

2013-08-26 Thread Kurt Pattyn
On 26 Aug 2013, at 14:26, Christoph Feck christ...@maxiom.de wrote: What do you mean with maintained as is? The document you cite does not mention anything related to invalid UTF-8. Unicode strictly requires no loss of information when going between the different representations. Currently

Re: [Development] A bug or not a bug, that's the question

2013-08-26 Thread Christoph Feck
On Monday 26 August 2013 14:39:50 Kurt Pattyn wrote: On 26 Aug 2013, at 14:26, Christoph Feck christ...@maxiom.de wrote: What do you mean with maintained as is? The document you cite does not mention anything related to invalid UTF-8. Unicode strictly requires no loss of information when

Re: [Development] A bug or not a bug, that's the question

2013-08-26 Thread Thiago Macieira
On segunda-feira, 26 de agosto de 2013 13:53:38, Kurt Pattyn wrote: So, my question is now: should we consider this as a bug, and thus file a bug request in Jira, or can we live with it? Note that solving this issue could have an effect an QString as well, as it needs to handle those