satellite-sync : multibyte package file names in RHN Satellite are messed up
Issue
-
RHN Hosted, when exporting data for satellite-sync, treats database data
(package files among others) as ISO-8859-1 data (regardless of what encoding
is actually used in the database), which it then encodes to UTF-8 (i.e. Unicode
encoding is merely used as a transport encoding for data which it considers
to be ISO-Latin-1 data). -
The same mechanism is used when RHN Satellite exports data for ISS or
channel dump. An example XML file from an actual RHN Hosted / Satellite:
<rhn-package-file username="root" lang="" checksum-type="md5"
name="/usr/lib/aspell-0.60/español.alias" verifyflags="-1"
checksum="fa110a37cae71c37722e1b07ab6f14d4" rdev="0" groupname="root"
mtime="1152700073" file_size="72" device="2305" flags="0"
md5="fa110a37cae71c37722e1b07ab6f14d4" inode="4719131" linkto=""
file_mode="-32348"/>
Environment
- Red Hat Satellite 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
