tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tar: Can't translate pathname 'xxx' to UTF-8



> Date: Fri, 25 Sep 2026 20:43:26 +0200
> From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
> 
> I think I've seen comments about a similar issue before. What would be
> the correct way to fix this ?

What platform is this on and in what stage of the build did it happen?

You may be thinking of this thread, and of its resolution of setting
LC_CTYPE.UTF-8 in EXTRACT_ENV (on NetBSD), after I fixed a bug in
NetBSD's libarchive/bsdtar so that it would not silently suppress an
underlying error:

https://mail-index.netbsd.org/tech-userlevel/2026/08/24/msg015051.html
https://mail-index.netbsd.org/tech-userlevel/2026/08/24/msg015069.html
https://mail-index.netbsd.org/pkgsrc-changes/2026/08/24/msg352989.html

However, it is subtly different.

Your error message is:

tar: ./kicad-10.0.6/...: Can't translate pathname './kicad-10.0.6/...' to UTF-8

The error message wiz reported is:

tar: Pathname can't be converted from UTF-8 to current locale

You appear to have had this issue before, in 2023, with a similar but
not quite identical pathname:

https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027628.html

It is unclear whether you resolved it then, because at the time you
concluded the failure was actually somewhere else in the build:

> forget this, I focused on the tar error but it's not what causes the package
> to fail.
> I shouldn't look at pbulk output before first coffee :)


Home | Main Index | Thread Index | Old Index