From 5a30aff288fce05c540786ab9001cb0217f29494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Tue, 26 Sep 2017 19:01:20 +0200 Subject: [PATCH] Set FAT label in upper case FAT label should be stored in upper case. Also Windows systems doing it. --- src/fs/fat16.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/fat16.cpp b/src/fs/fat16.cpp index 47d86d9..fa263cd 100644 --- a/src/fs/fat16.cpp +++ b/src/fs/fat16.cpp @@ -139,9 +139,9 @@ qint64 fat16::readUsedCapacity(const QString& deviceNode) const bool fat16::writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) { - report.line() << xi18nc("@info:progress", "Setting label for partition %1 to %2", deviceNode, newLabel); + report.line() << xi18nc("@info:progress", "Setting label for partition %1 to %2", deviceNode, newLabel.toUpper()); - ExternalCommand cmd(report, QStringLiteral("fatlabel"), { deviceNode, newLabel }); + ExternalCommand cmd(report, QStringLiteral("fatlabel"), { deviceNode, newLabel.toUpper() }); return cmd.run(-1) && cmd.exitCode() == 0; }