bug#61722: (guix cpio) produces corrupted archives when there are non-ASCII filenames

2023-02-25 Thread Maxim Cournoyer
Hi, Maxim Cournoyer writes: > Fixes . > > * guix/cpio.scm (file->cpio-header): Compute the file name length in bytes > rather than in > characters. > (file->cpio-header*, special-file->cpio-header*): Likewise. > (write-cpio-archive): Likewise, and write the fi

bug#61722: (guix cpio) produces corrupted archives when there are non-ASCII filenames

2023-02-22 Thread Maxim Cournoyer
Hi, It appears that the code we have to generate CPIO archives doesn't handle the presence of non-ASCII characters in the file names of files to be archived well: First, to make rpm usable on a Guix System: --8<---cut here---start->8--- # mkdir /var/lib/rpm #