Bug 970508 - tree does not correctly display internationalized filenames
Summary: tree does not correctly display internationalized filenames
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: tree
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-04 08:10 UTC by David Tonhofer
Modified: 2013-06-04 08:21 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-06-04 08:21:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Tonhofer 2013-06-04 08:10:10 UTC
Description of problem:
-----------------------

tree does not correctly display internationalized filesnames (in UTF-8)


$ mkdir TEST; cd TEST

$ echo $LANG
en_US.UTF-8

$ touch "Les nouvelles coordonnées.txt"; ls -l

-rw-rw-r--. 1 hobbes hobbes 0 Jun  4 10:04 Les nouvelles coordonnées.txt

$ tree
.
└── Les\ nouvelles\ coordonn\303\251es.txt

0 directories, 1 file


So the bytes in the filename are output "as is" in octal. This might be good feature to have, but then it should be activated explicitely via an option ;-)
And hex would be more appropriate (octal in 2013? I is more likely than you think)

Version-Release number of selected component (if applicable):
-------------------------------------------------------------

tree-1.6.0-5.fc18.x86_64

How reproducible:
-----------------

Always

Comment 1 Tim Waugh 2013-06-04 08:21:14 UTC
You can use the -N option to tell tree to display filenames byte-for-byte rather than escaping characters.

(The escaping format, using octal, allows easy pasting into a shell.)


Note You need to log in before you can comment on or make changes to this bug.