WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
25863
[Qt] Expose default encoding in qt
https://bugs.webkit.org/show_bug.cgi?id=25863
Summary
[Qt] Expose default encoding in qt
Jakob Truelsen
Reported
2009-05-19 08:39:35 PDT
Please apply the following patch, exposing the default encoding property in QT
Attachments
Patch exposing the property
(2.97 KB, patch)
2009-05-19 08:40 PDT
,
Jakob Truelsen
no flags
Details
Formatted Diff
Diff
Patch exposing the property
(2.99 KB, patch)
2009-05-19 09:04 PDT
,
Jakob Truelsen
no flags
Details
Formatted Diff
Diff
A updated patch
(3.11 KB, patch)
2009-05-23 00:45 PDT
,
Jakob Truelsen
zecke
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jakob Truelsen
Comment 1
2009-05-19 08:40:52 PDT
Created
attachment 30470
[details]
Patch exposing the property
Jakob Truelsen
Comment 2
2009-05-19 09:04:17 PDT
Created
attachment 30471
[details]
Patch exposing the property
Holger Freyther
Comment 3
2009-05-22 22:29:05 PDT
Comment on
attachment 30471
[details]
Patch exposing the property
> Index: WebKit/qt/ChangeLog > =================================================================== > --- WebKit/qt/ChangeLog (revision 43858) > +++ WebKit/qt/ChangeLog (working copy) > @@ -1,3 +1,15 @@ > +2009-05-19 Jakob Truelsen <
antialize@gmail.com
> > + > + Reviewed by NOBODY (OOPS!). > + > + Expose the default text encoding property to QT
^^^ no tabs!
> /*! > + \since 4.6 > + Specifies the default text encoding system. > + > + The \a encoding, must be a string describing an encoding such as “utf-8”, “iso-8859-1", etc. > + > + \sa defaultTextEncoding() > +*/ > +void QWebSettings::setDefaultTextEncoding(const QString &encoding) > +{ > + d->defaultTextEncoding = encoding; > + d->apply(); > +}
For the doc string, maybe you should refer to the Qt TextCodec's for other encodings and that an empty string will use whatever default?
Jakob Truelsen
Comment 4
2009-05-23 00:45:26 PDT
Created
attachment 30607
[details]
A updated patch Updated the patch, with propper whitespace, and a better documentation
Holger Freyther
Comment 5
2009-05-23 06:02:26 PDT
Comment on
attachment 30607
[details]
A updated patch looks good, for Qt4.6 the api might change.
Holger Freyther
Comment 6
2009-05-23 07:06:25 PDT
Thanks. Landed in
r44090
. Some hints for future patches. Try to not have whitespace in the patch, no tabs in general (the commit will be rejected), put a reference to the bug into the commit log. :)
Simon Hausmann
Comment 7
2010-02-09 07:31:45 PST
***
Bug 34751
has been marked as a duplicate of this bug. ***
Simon Hausmann
Comment 8
2010-02-09 07:36:23 PST
***
Bug 32849
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug