Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akregator
Commits
3bd4c06d
Commit
3bd4c06d
authored
Feb 01, 2021
by
Laurent Montel
😁
Browse files
UTF-8 is the new default for QTextStream.
parent
c9c02090
Pipeline
#49300
failed with stage
in 10 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/akregator_part.cpp
View file @
3bd4c06d
...
...
@@ -403,7 +403,9 @@ bool Part::writeToTextFile(const QString &data, const QString &filename) const
return
false
;
}
QTextStream
stream
(
&
file
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
stream
.
setCodec
(
"UTF-8"
);
#endif
stream
<<
data
<<
Qt
::
endl
;
return
file
.
commit
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment