From 54e5eb2c0e2306627ce7bc82f8b642abfdc90c73 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 9 Sep 2011 11:21:23 +0000 Subject: - force locale to be C (mga#95, Pascal Terjan) (when packages contain translated summary/description genhdlist2 would embed them instead of the English version) --- NEWS | 4 ++++ genhdlist2 | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/NEWS b/NEWS index e94bd7e..b02b7d8 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +- force locale to be C (mga#95, Pascal Terjan) + (when packages contain translated summary/description genhdlist2 would embed + them instead of the English version) + Version 6.0 - 15 December 2010, by Per Øyvind Karlsen - compress xml files with '--text' flag passed to lzma (shrinks diff --git a/genhdlist2 b/genhdlist2 index 59021c7..463cde1 100644 --- a/genhdlist2 +++ b/genhdlist2 @@ -47,6 +47,12 @@ sub main() { $options{no_incremental} ||= $options{no_hdlist}; + # Force locale to be C + # We don't translate anything but we would get translated package info and + # wrongly put it in hdlists + # https://bugs.mageia.org/show_bug.cgi?id=95 + $ENV{LC_ALL} = 'C'; + do_it($rpms_dir, %options); } -- cgit v1.2.1