I was using grep to scan names of files in RPM's.
Some of the names are in latin1 instead of UTF-8,
and the version of grep installed with 13.2 (2.20),
gives messages like this:
*** file = libvtkUtilitiesPythonInitializer-pv4.2.so.1
grep: invalid UTF-8 byte sequence in input
-----
*** file = libvtkPVClientServerCoreCore-pv4.2.so.1
grep: invalid UTF-8 byte sequence in input
-----
the 'file' part is my script -- name of the file I
am looking for, but grep aborts because of the
invalid UTF-8 bytes in the "rpm -ql" output of
some package or another.
I D/L their current version (2.21) and verified it
is fixed; output comes up now, like:
*** file = libvtkUtilitiesPythonInitializer-pv4.2.so.1
/home/rpms/13.2/repo/oss/suse/x86_64/paraview-4.2.0-1.2.x86_64.rpm:/usr/lib64/paraview/libvtkUtilitiesPythonInitializer-pv4.2.so.1
/home/rpms/13.2/repo/oss/x64+noarch/paraview-4.2.0-1.2.x86_64.rpm:/usr/lib64/paraview/libvtkUtilitiesPythonInitializer-pv4.2.so.1
-----
*** file = libvtkPVClientServerCoreCore-pv4.2.so.1
/home/rpms/13.2/repo/oss/suse/x86_64/paraview-4.2.0-1.2.x86_64.rpm:/usr/lib64/paraview/libvtkPVClientServerCoreCore-pv4.2.so.1
/home/rpms/13.2/repo/oss/x64+noarch/paraview-4.2.0-1.2.x86_64.rpm:/usr/lib64/paraview/libvtkPVClientServerCoreCore-pv4.2.so.1
I have dumped the names of all the files of all the rpms
in 13.2, so if something is "looking" for one of those
files, I can scan the distribution for the file.
The bug only appears if you use the "-P" option of grep --
which I used.
The grep maintainers were able to reproduce my problem
with an older version...
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse+owner(a)opensuse.org