Bug#528007: update-exim4.conf only works with LC_ALL=C

2009-05-10 Thread Giuseppe Sacco
Package: exim4-config
Version: 4.69-10
Severity: grave

I got this error updating exim4-daemon-light on un unstable machine. The
result was a machine without exim running.

When executing the command /usr/sbin/update-exim4.conf (automatically
started from /etc/init.d/exim4) I get an error from sed command. If I
execute the same command using sh -x prefix, I get these messages:

+ dc_other_hostnames=sgi.lixper.it
++ echo @:localhost:sgi.lixper.it
++ sed -e 's�[;: ]*$��' -e 's� *��' -e 's�;�:�g'
sed: espressione -e #1, carattere 2: delimiter character is not a single-byte 
character
+ local_domains=
sgi:/etc/exim4#

My locale is it_IT.UTF-8.

When executing env LC_ALL=C sh -x update-exim4.conf then it pass
correctly that line, as shown here:

+ dc_other_hostnames=sgi.lixper.it
++ echo @:localhost:sgi.lixper.it
++ sed -e 's�[;: ]*$��' -e 's� *��' -e 's�;�:�g'
+ local_domains=@:localhost:sgi.lixper.it
++ tempfile -m600 -p ex4
+ UPEX4C_internal_tmp=/tmp/ex4HpcyQS

Bye,
Giuseppe







--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed (with 5 errors): Re: Bug#528007: update-exim4.conf only works with LC_ALL=C

2009-05-10 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 forcemerge 527445 528007
Bug#527445: Fails at configuration (delimiter character is not a single-byte  
character)
Bug#528007: update-exim4.conf only works with LC_ALL=C
Bug#527806: exim4-config: fails during postinst sed: -e expression #1, char 2: 
delimiter ...
Forcibly Merged 527445 527806 528007.

 On 2009-05-10 Giuseppe Sacco giuse...@eppesuigoccas.homedns.org wrote:
Unknown command or malformed arguments to command.

  Package: exim4-config
Unknown command or malformed arguments to command.

  Version: 4.69-10
Unknown command or malformed arguments to command.

  Severity: grave
Unknown command or malformed arguments to command.

  I got this error updating exim4-daemon-light on un unstable machine. The
Unknown command or malformed arguments to command.

Too many unknown commands, stopping here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#528007: update-exim4.conf only works with LC_ALL=C

2009-05-10 Thread Andreas Metzler
forcemerge 527445 528007

On 2009-05-10 Giuseppe Sacco giuse...@eppesuigoccas.homedns.org wrote:
 Package: exim4-config
 Version: 4.69-10
 Severity: grave

 I got this error updating exim4-daemon-light on un unstable machine. The
 result was a machine without exim running.

 When executing the command /usr/sbin/update-exim4.conf (automatically
 started from /etc/init.d/exim4) I get an error from sed command. If I
 execute the same command using sh -x prefix, I get these messages:
[...]

Already reported (twice). Merging.

cu andreas




-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#528007: update-exim4.conf only works with LC_ALL=C

2009-05-10 Thread Giuseppe Sacco
I wrote a small patch for this bug:
===
--- /usr/sbin/update-exim4.conf.orig2009-05-02 09:57:17.0 +0200
+++ /usr/sbin/update-exim4.conf 2009-05-10 10:32:40.0 +0200
@@ -150,7 +150,7 @@
 # add localhost, get rid of spaces, trailing (semi)colons and make the list
 # colon separated
 local_domains=$(echo @:localhost:${dc_other_hostnames} | \
-   sed -e 'sÄ[;: ]*$ÄÄ' -e 'sÄ *ÄÄ' -e 'sÄ;Ä:Äg')
+   env LC_ALL=C sed -e 'sÄ[;: ]*$ÄÄ' -e 'sÄ *ÄÄ' -e 'sÄ;Ä:Äg')
 
 UPEX4C_internal_tmp=$(tempfile -m600 -p ex4)
 
===

but I unsure if a better patch would be check for ${dc_other_hostnames}
for non ascii characters, like in:

===
matches=$(echo ${dc_other_hostnames} | egrep -c '^[A-Za-z0-9.:@-]*$')
if [ $matches -ne 1 ]
then
  error 
fi
local_domains=$(echo @:localhost:${dc_other_hostnames} | \
sed -e 's|[;: ]*$||' -e 's| *||' -e 's|;|:|g')
===

Bye,
Giuseppe




--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org