public inbox for ofono@lists.linux.dev
 help / color / mirror / Atom feed
From: Andres Salomon <dilinger@queued.net>
To: ofono@lists.linux.dev
Cc: jbb.prv@gmx.de
Subject: [PATCH phonesim 2/3] Only call QTextStream::setCodec in Qt5
Date: Sat, 28 Feb 2026 04:16:50 -0500	[thread overview]
Message-ID: <20260228041650.37231ae6@5400> (raw)
In-Reply-To: <20260228041213.45bc0030@5400>

From: Andres Salomon <dilinger@queued.net>

Qt6 defaults to UTF8, and setCodec was removed.
---
 src/control.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/control.cpp b/src/control.cpp
index b06dbc1..66a65ef 100644
--- a/src/control.cpp
+++ b/src/control.cpp
@@ -700,7 +700,9 @@ QString Script::Run(const QString &name, const QDBusMessage &msg)
     }
 
     QTextStream stream(&scriptFile);
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
     stream.setCodec("UTF-8");
+#endif
     QString contents = stream.readAll();
     scriptFile.close();
 
-- 
2.51.0


  parent reply	other threads:[~2026-02-28  9:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-28  9:12 [PATCH phonesim 0/3] Port to Qt6 (v2) Andres Salomon
2026-02-28  9:15 ` [PATCH phonesim 1/3] Fix compatibility with Qt6 Andres Salomon
2026-02-28  9:16 ` Andres Salomon [this message]
2026-02-28  9:17 ` [PATCH phonesim 3/3] Make configure script detect and enable Qt6 if available Andres Salomon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260228041650.37231ae6@5400 \
    --to=dilinger@queued.net \
    --cc=jbb.prv@gmx.de \
    --cc=ofono@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox