2019-01-17 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdrender(1) that caused corruption when printing
	UTF-8 characters.
This commit is contained in:
Fred Gleason 2019-01-17 18:19:39 -05:00
parent b23fd5dd63
commit c7c5e6727e
3 changed files with 6 additions and 3 deletions

View File

@ -18403,3 +18403,6 @@
to be rendered as a PLAY transition.
2019-01-17 Fred Gleason <fredg@paravelsystems.com>
* Removed dead debugging lines from the 'RDRenderer' class.
2019-01-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdrender(1) that caused corruption when printing
UTF-8 characters.

View File

@ -204,7 +204,7 @@ bool __RDRenderLogLine::GetCutFile(const QString &cutname,int start_pt,
default:
ret=false;
printf("export err %d [%s]\n",export_err,
(const char *)RDAudioExport::errorText(export_err,conv_err));
(const char *)RDAudioExport::errorText(export_err,conv_err).toUtf8());
break;
}

View File

@ -71,7 +71,7 @@ MainObject::MainObject(QObject *parent)
//
rda=new RDApplication("rdrender","rdrender",RDRENDER_USAGE,this);
if(!rda->open(&err_msg)) {
fprintf(stderr,"rdrender: %s\n",(const char *)err_msg);
fprintf(stderr,"rdrender: %s\n",(const char *)err_msg.toUtf8());
exit(1);
}
@ -330,7 +330,7 @@ void MainObject::userData()
void MainObject::printProgressMessage(const QString &msg)
{
if(render_verbose) {
fprintf(stderr,"%s\n",(const char *)msg);
fprintf(stderr,"%s\n",(const char *)msg.toUtf8());
}
}