Re: [libvirt] [PATCH 10/14] Convert NEWS to UTF-8

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

 



On Tue, Jul 28, 2009 at 07:44:13PM +0100, Mark McLoughlin wrote:
> Added by Rich Jones for this rpmlint warning:
> 
>   libvirt.x86_64: W: file-not-utf8 /usr/share/doc/libvirt-0.6.0/NEWS
> 
> See:
> 
>   https://bugzilla.redhat.com/226055
> ---
>  libvirt.spec.in |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/libvirt.spec.in b/libvirt.spec.in
> index dcedbe0..2645a22 100644
> --- a/libvirt.spec.in
> +++ b/libvirt.spec.in
> @@ -245,6 +245,9 @@ of recent versions of Linux (and other OSes).
>  %prep
>  %setup -q
>  
> +mv NEWS NEWS.old
> +iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
> +
>  %build
>  %if ! %{with_xen}
>  %define _without_xen --without-xen
> -- 
> 1.6.2.5

  The proper fix is actually to change docs/news.xsl top level
<xsl:output method="text" encoding="ISO-8859-1"/> into
<xsl:output method="text" encoding="UTF8"/>
but that work at release time not at packaging time which is why the
change was made in the rpm (or how doing things at the distro level is
the wrong place to fix things).
  I will fix that in time for 0.7.0,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]