Bug 382272

Summary: worker not support install deb file with path which contains special characters
Product: [Frameworks and Libraries] libqapt Reporter: sbw <sbw>
Component: generalAssignee: Harald Sitter <sitter>
Status: RESOLVED NOT A BUG    
Severity: critical CC: sbw
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description sbw 2017-07-12 11:27:01 UTC
Same problem as https://bugs.kde.org/show_bug.cgi?id=316187 but I'm using libqapt3 3.0.2-1 and libqapt3-runtime 3.0.2-1 (Debian)
Comment 1 sbw 2017-07-12 12:01:26 UTC
maybe I found reason:
In 

src/worker/workerinstallprogress.cpp 
void WorkerInstallProgress::setTransaction(Transaction *trans)  <- this function 

the m_trans->locale() is Empty, so it's not set a codec for locale.
Comment 2 sbw 2017-07-12 12:11:51 UTC
It's my fault, need to setting a local to transaction. closed.
Comment 3 Harald Sitter 2017-07-12 13:06:25 UTC
Seems to me the API should maybe default initialize locale to whatever is in QLocale of the application.
Having to specify the locale explicitly is a fairly avoidable pitfall when using libqapt.

If you care enough to propose a change we could improve that ;)