From 5e21be39ea2c12f2953fb4c2c47dd0c4b99794d6 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sat, 31 Aug 2019 15:41:13 -0400 Subject: [PATCH] 2019-08-31 Fred Gleason * Updated ripper profiling code in rdlibrary(1) to be UTF-8 clean. --- ChangeLog | 2 ++ lib/rdcddblookup.cpp | 4 ++-- lib/rdcdplayer.cpp | 4 ++-- lib/rdcdripper.cpp | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a7931df..b32a750b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19051,3 +19051,5 @@ 2019-08-29 Patrick Linstruth * Modified rdlibrary(1) Rip Disk dialog to use Artist and Album text fields when modifying cart labels. +2019-08-31 Fred Gleason + * Updated ripper profiling code in rdlibrary(1) to be UTF-8 clean. diff --git a/lib/rdcddblookup.cpp b/lib/rdcddblookup.cpp index 6810c52f..610f5b94 100644 --- a/lib/rdcddblookup.cpp +++ b/lib/rdcddblookup.cpp @@ -2,7 +2,7 @@ // // A Qt class for accessing the FreeDB CD Database. // -// (C) Copyright 2003,2016 Fred Gleason +// (C) Copyright 2003-2019 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public License @@ -458,6 +458,6 @@ void RDCddbLookup::Profile(const QString &msg) if(lookup_profile_msgs!=NULL) { printf("%s | RDCddbLookup::%s\n", (const char *)QTime::currentTime().toString("hh:mm:ss.zzz"), - (const char *)msg); + (const char *)msg.toUtf8()); } } diff --git a/lib/rdcdplayer.cpp b/lib/rdcdplayer.cpp index 521ddf4a..2d1617a8 100644 --- a/lib/rdcdplayer.cpp +++ b/lib/rdcdplayer.cpp @@ -2,7 +2,7 @@ // // Abstract a Linux CDROM Device. // -// (C) Copyright 2002-2003,2016 Fred Gleason +// (C) Copyright 2002-2019 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public License @@ -550,7 +550,7 @@ void RDCdPlayer::Profile(const QString &msg) if(cdrom_profile_msgs!=NULL) { fprintf(cdrom_profile_msgs,"%s | RDCdPlayer::%s\n", (const char *)QTime::currentTime().toString("hh:mm:ss.zzz"), - (const char *)msg); + (const char *)msg.toUtf8()); } } diff --git a/lib/rdcdripper.cpp b/lib/rdcdripper.cpp index d439daa9..444c5b5a 100644 --- a/lib/rdcdripper.cpp +++ b/lib/rdcdripper.cpp @@ -2,7 +2,7 @@ // // Rip an audio from from CD // -// (C) Copyright 2010,2016 Fred Gleason +// (C) Copyright 2010-2019 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -198,6 +198,6 @@ void RDCdRipper::Profile(const QString &msg) if(conv_profile_msgs!=NULL) { fprintf(conv_profile_msgs,"%s | RDCdPlayer::%s\n", (const char *)QTime::currentTime().toString("hh:mm:ss.zzz"), - (const char *)msg); + (const char *)msg.toUtf8()); } }