Package: nanoblogger Severity: normal Tags: patch I guess this concerns upstream, anyway:
In blog.conf there's a nice variable called $BLOG_CHARSET but unfortunately it is not used in the templates/*htm files. In the templates there's a hardcoded UTF-8 encoding; therefore setting $BLOG_CHARSET in the config doesn't have any effect on the resulting HTML files. I've changed UTF-8 to $BLOG_CHARSET in my templates and it works as expected; find attached a patch with these changes. gregor -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.13.200508301710 Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
diff -u1 templates.orig/category_archive.htm templates/category_archive.htm --- templates.orig/category_archive.htm 2005-09-10 01:30:23.000000000 +0200 +++ templates/category_archive.htm 2005-09-10 01:30:53.000000000 +0200 @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="$BLOG_CHARSET"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> diff -u1 templates.orig/main_index.htm templates/main_index.htm --- templates.orig/main_index.htm 2005-09-10 01:30:23.000000000 +0200 +++ templates/main_index.htm 2005-09-10 01:31:03.000000000 +0200 @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="$BLOG_CHARSET"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> diff -u1 templates.orig/makepage.htm templates/makepage.htm --- templates.orig/makepage.htm 2005-09-10 01:30:23.000000000 +0200 +++ templates/makepage.htm 2005-09-10 01:31:12.000000000 +0200 @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="$BLOG_CHARSET"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> diff -u1 templates.orig/month_archive.htm templates/month_archive.htm --- templates.orig/month_archive.htm 2005-09-10 01:30:23.000000000 +0200 +++ templates/month_archive.htm 2005-09-10 01:31:18.000000000 +0200 @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="$BLOG_CHARSET"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> diff -u1 templates.orig/permalink.htm templates/permalink.htm --- templates.orig/permalink.htm 2005-09-10 01:30:23.000000000 +0200 +++ templates/permalink.htm 2005-09-10 01:31:24.000000000 +0200 @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="$BLOG_CHARSET"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

