https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295875
Bug ID: 295875
Summary: md5 mangles filenames containing non-ASCII characters
Product: Base System
Version: 15.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Scenario:
- FreeBSD stable/15 at 6146c5962e5c
- LANG environment variable set to C.UTF-8
- No LC_* environment variable set
- The filesystem (ZFS) is using UTF-8 character encoding for filenames
- Running md5 -r копия.doc
Result:
- The following is output:
0123456789abcdef0123456789abcdef \320\272\320\276\320\277\320\270\321\217.doc
Expected result:
- The following should be output:
0123456789abcdef0123456789abcdef копия.doc
Note:
- In /usr/src/sbin/md5/md5.c, the function "safename()" is used to mangle
filenames. This should be replaced by a saner check which also considers
international characters based on the environment settings for LANG and LC_*.
-- Martin
--
You are receiving this mail because:
You are the assignee for the bug.