Date: Fri, 14 Jun 2019 21:49:58 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238568] tar filenames encoding problem Message-ID: <bug-238568-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238568 Bug ID: 238568 Summary: tar filenames encoding problem Product: Base System Version: 11.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: aler@playground.ru How to reproduce: ``` #!/bin/sh rm -Rf d e mkdir d touch d/`printf '\306'` mkdir e tar -c -f - d | tar -C e -x -f - ``` Doing this with empty $LANG leads to ``` : Can't translate pathname 'd/=D0=96' to UTF-8# sh test.sh=20 ``` However, directory `d` proprely copied into `e`. This error message disappears with `LANG=3Den_US.ISO8859-1` I'm not exactly sure what this error message means, but anyway it is very unclear and may be interpreted as "the file was not archived". Also I don't know why tar even tries to do some charset translations. It sh= ould be binary-safe against filenames by default. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238568-227>