Bug 382272 - worker not support install deb file with path which contains special characters
Summary: worker not support install deb file with path which contains special characters
Status: RESOLVED NOT A BUG
Alias: None
Product: libqapt
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR critical
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-12 11:27 UTC by sbw
Modified: 2017-07-12 13:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ;)