sed and encodings

William Kronert wkronert at sunstroke.sdsu.edu
Mon Jan 19 21:45:57 UTC 2009


At 12:40 PM 1/19/2009, Julien ÉLIE wrote:
>>    sed 's/.*/x/'
>>
>>normally should replace an arbitrary string by a single x.
>>The dot, however, does not match non-Ascii characters any more!
>
>Could you please try with the attached docheckgroups file?
>(only change the path to innshellvars at line 2)
>
>I replaced all the occurrences of sed /.*/ with cut or perl.

I used your attached docheckgroups file and preserved the tab spaces.

It works! Yahooo :-).  I have tried it on several checkgroups messages:
To be sure it work with standard checkgroups I used: Big8, Microsoft, sdnet
Then I check fr.* with your checkgroups and the 
one from the maintainer (the one that didn't work before).
I then check fido7.* with your chceckgroup and 
the one from the maintainer (the one that didn't work before) now all work.

All messages I fed into your new docheckgroups work.

Example from fido7.*:
# The following newsgroups are missing and should be added:
#
#       fido7.r46.warez.new
#
# You can add them by executing the command(s):

         /etc/news/bin/ctlinnd newgroup fido7.r46.warez.new m

Example from fr.* (the one that didn't work):
# The following newsgroups descriptions are obsolete:
#
#       fr.bio.medecine Discussions sur la médecine.
#
# You can remove them by editing /var/lib/news/newsgroups
# or by using the -u flag with docheckgroups.

# The following newsgroups descriptions are missing and should be added:
#
#       fr.bio.medecine Discussions sur la médecine.
#
# You can add them by editing /var/lib/news/newsgroups
# or by using the -u flag with docheckgroups.

exit # so you can feed this message into the shell (as well as mod-active).

No more strange output.  This is a major 
improvement.  Thank you so much, Julien.  I was getting tired of this :-).

Bill




More information about the inn-workers mailing list