Bug 376069 - Can not open pictures which path string contains chinese
Summary: Can not open pictures which path string contains chinese
Status: RESOLVED DUPLICATE of bug 371816
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 16.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-05 17:06 UTC by Charlie Zhang
Modified: 2019-06-26 09:57 UTC (History)
2 users (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 Charlie Zhang 2017-02-05 17:06:55 UTC
I am using Archlinux.
When I open a picture which contains Chinese charactor in the path(or filename), Gwenview show me a dialog said 'file does not exist'.
The chinese charactors it shows me appearanced as a '�'.
I have the right locale values and other application in kde works fine.
Comment 1 Christoph Feck 2017-02-06 03:53:54 UTC
Does Dolphin show a preview of these files, if you enable image previews in Dolphin?
Comment 2 Charlie Zhang 2017-02-06 06:04:55 UTC
(In reply to Christoph Feck from comment #1)
> Does Dolphin show a preview of these files, if you enable image previews in
> Dolphin?

Yes, dolphin preview works fine.
Comment 3 Nate Graham 2017-11-09 19:45:14 UTC
Same problem as Bug 371816. Looks like we don't handle non-Latin characters very well.

*** This bug has been marked as a duplicate of bug 371816 ***
Comment 4 2wxsy58236r3 2019-06-26 09:57:35 UTC
I cannot reproduce this on 19.04.2 - I can successfully open a file with CJK characters in the path and/or filename. Help message also displays fine.

$ locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

$ gwenview --help
Usage: gwenview [options] url
画像ビューア

Options:
  -h, --help             Displays this help.
  -v, --version          Displays version information.
  --author               Show author information.
  --license              ライセンス情報を表示
  --desktopfile <ファイル名>  The base file name of the desktop entry for this
                         application.
  -f, --fullscreen       フルスクリーンモードで開始
  -s, --slideshow        スライドショーモードで開始

Arguments:
  url                    A starting file or folders