-----Original Message----- From: Denniston, Todd A CIV NAVSURFWARCENDIV Crane Sent: Tuesday, November 29, 2011 10:54 To: 'CentOS mailing list' Subject: RE: [CentOS] How can rpm "%{SUMMARY}" not be consistent?
####and for added fun... look at an agg package from epel $ export LANG=en_US.UTF-8 $ rpm -q --qf '"%{VENDOR}","%{NAME}","%{VERSION}","%{VERSION}- %{RELEASE}","%{ARCH}","%{SUMMARY}"\n' agg "Fedora Project","agg","2.5","2.5-9.el5","i386","Anti-Grain Geometry" $ export LANG= $ rpm -q --qf '"%{VENDOR}","%{NAME}","%{VERSION}","%{VERSION}- %{RELEASE}","%{ARCH}","%{SUMMARY}"\n' agg "Fedora Project","agg","2.5","2.5-9.el5","i386","Anti-Grain Geometry graphical rendering engine"
Why does the string length change this dramatically based on LANG?
###And even more fun... try compat-db $export LANG= ;rpm -q --qf '"%{VENDOR}","%{NAME}","%{VERSION}","%{VERSION}-%{RELEASE}","%{ARCH}","% {SUMMARY}"\n' compat-db "CentOS","compat-db","4.2.52","4.2.52-5.1","i386","The Berkeley DB database library for Red Hat Linux 7.x compatibility." $ export LANG=en_US.UTF-8 ;rpm -q --qf '"%{VENDOR}","%{NAME}","%{VERSION}","%{VERSION}-%{RELEASE}","%{ARCH}","% {SUMMARY}"\n' compat-db "CentOS","compat-db","4.2.52","4.2.52-5.1","i386","The Berkeley DB database library for CentOS 2.1 compatibility."
Yep that seems a strange one.