Bug#615634: sed use of 0 instead of 1 start addess leads to no locales behing selected
tag 615634 + moreinfo
thanks
On Sun, Feb 27, 2011 at 11:07:10PM +0100, Alban Browaeys wrote:
> Package: locales
> Version: 2.13-0exp2
> Severity: important
>
> In postinst:
> # Uncomment selected locales
> echo "$SELECTED_LOCALES" | while read locale ; do
> sed -i -e "0,/^[# ]*$locale *$/ s/^[# ]*$locale *$/$locale/" $LG
> done
> should become :
>
> # Uncomment selected locales
> echo "$SELECTED_LOCALES" | while read locale ; do
> sed -i -e "1,/^[# ]*$locale *$/ s/^[# ]*$locale *$/$locale/" $LG
> done
>
> ie sed 1, not sed 0, .
>
> this fixes locales selection and let any locale behing generated in the non select
> all use case.
>
Could you please detail what you are trying to achieve with this change?
Maybe sending your /etc/locale.gen would also help to understand the
problem.
Changing 0 into 1 would break the case where the same two entries are
present on the two first lines: both would be uncommented instead of
only the first one, which would break further scripts. Without more
explanations, I am not going to change that.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: