Go to file
Mitch Curtis 86115848b5 Correctly detect HTML 5 charset attribute in QTextCodec::codecForHtml()
QTextCodec::codecForHtml currently fails to detect the charset for this
HTML:

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1">
    <title>Test</title>
    </head>

This patch makes the detection of charsets more flexible, allowing for
the use of the HTML 5 charset attribute as well more terminator characters
("'", and ">").

I also added a *_data function for the unit tests.

Task-number: QTBUG-5451

Change-Id: I69fe4a04582f0d845cbbe9140a86a950fb7dc861
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Denis Dzyubenko <denis@ddenis.info>
2013-02-12 01:31:26 +01:00
bin Fix missing namespace macro warnings when building Qt Addon modules. 2013-02-11 10:58:25 +01:00
config.tests Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
dist QRegularExpression: add method for extracting the capturing group names 2013-02-05 13:46:25 +01:00
doc Remove left-overs of QT_{BEGIN,END}_HEADERS 2013-01-31 20:08:58 +01:00
examples Keep QLineEdit placeholder text visible when focused 2013-02-01 16:13:12 +01:00
lib
mkspecs Refactor QEglFSPandaHooks and add physicalScreenSize() 2013-01-30 13:00:02 +01:00
qmake consolidate generation of metafile install targets 2013-01-25 23:30:50 +01:00
src Correctly detect HTML 5 charset attribute in QTextCodec::codecForHtml() 2013-02-12 01:31:26 +01:00
tests Correctly detect HTML 5 charset attribute in QTextCodec::codecForHtml() 2013-02-12 01:31:26 +01:00
tools configure.exe: Fix line feed character 2013-01-25 00:40:17 +01:00
util QUrl effective TLDs: update table and split into chunks of 64K 2013-02-09 10:12:44 +01:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Add qmake generated files to .gitignore. 2012-12-19 21:31:58 +01:00
.qmake.conf don't auto-install example sources by default for all modules 2012-12-03 15:56:28 +01:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure Introduce a native color dialog for GTK+ 2.x 2013-02-01 19:39:31 +01:00
configure.bat Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.BSD Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.FDL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.LGPL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.LGPL-ONLY Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
INSTALL fix links in INSTALL 2012-10-10 08:45:22 +02:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro rewrite default spec handling 2012-11-01 20:17:57 +01:00
sync.profile syncqt: Don't check for QT_{BEGIN,END}_HEADER macros 2013-01-26 18:18:46 +01:00