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

Bug#192768: www.debian.org: searchtml/Makefile broken



On Sat, May 10, 2003 at 11:04:26AM +0200, Frank Lichtenheld wrote:
> Package: www.debian.org
> Version: N/A; reported 2003-05-10
> Severity: normal
> Tags: patch
> 
> searchtml/Makefile is broken. It overwrites the source file search.wml
> The following patch should fix this:
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/webwml/webwml/english/searchtmpl/Makefile,v
> retrieving revision 1.7
> diff -u -r1.7 Makefile
> --- Makefile    2 May 2003 14:05:14 -0000       1.7
> +++ Makefile    10 May 2003 08:55:40 -0000
> @@ -17,4 +17,5 @@
>         $(WML) $<
>  # XXX this likely doesn't work at all for SUBLANG-enabled languages!
>         c=`grep CHARSET ../.wmlrc | cut -d= -f2`; \
> -          iconv -f $$c -t UTF-8 $< | perl -pe 's,^(\s*<meta http-equiv="Content-Type" content="text/html; charset=)\S+(">)$$,$$1UTF-8$$2,' > $<
> +       iconv -f $$c -t UTF-8 $@ | perl -pe 's,^(\s*<meta http-equiv="Content-Type" content="text/html; charset=)\S+(">)$$,$$1UTF-8$$2,' > $@.tmp
> +       mv $@.tmp $@

Silly person, just s/$</$@/g in the iconv | perl line :)

Oddly enough, I didn't notice this when I tested that change... must be
because I tested it on the Bulgarian page, and I can't read much Bulgarian
Cyrillic anyway :)

-- 
     2. That which causes joy or happiness.



Reply to: