Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jun 2026 14:58:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 295875] md5 mangles filenames containing non-ASCII characters
Message-ID:  <bug-295875-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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: bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-295875-227>