summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/HTMLify.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-02-16 08:33:07 +0000
committerfukachan <fukachan>2003-02-16 08:33:07 +0000
commit26f4ac0e3c861ffe00f37642a92908d2a27e428e (patch)
treeaa83354e5d4391464f1d0c3083f13650d9f442d9 /fml/lib/FML/Command/HTMLify.pm
parent2f2a7c3b4e9f19041710356df7180ca93d8e0bd4 (diff)
downloadfml8-26f4ac0e3c861ffe00f37642a92908d2a27e428e.tar.gz
fml8-26f4ac0e3c861ffe00f37642a92908d2a27e428e.tar.bz2
fml8-26f4ac0e3c861ffe00f37642a92908d2a27e428e.zip
use language_*() method to determine $charset
Diffstat (limited to 'fml/lib/FML/Command/HTMLify.pm')
-rw-r--r--fml/lib/FML/Command/HTMLify.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/fml/lib/FML/Command/HTMLify.pm b/fml/lib/FML/Command/HTMLify.pm
index f7437050..7ef68c92 100644
--- a/fml/lib/FML/Command/HTMLify.pm
+++ b/fml/lib/FML/Command/HTMLify.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: HTMLify.pm,v 1.14 2002/12/24 10:19:43 fukachan Exp $
+# $FML: HTMLify.pm,v 1.15 2003/01/11 16:05:14 fukachan Exp $
#
package FML::Command::HTMLify;
@@ -43,9 +43,7 @@ sub convert
my $config = $curproc->config();
my $src_dir = $optargs->{ src_dir };
my $dst_dir = $optargs->{ dst_dir };
-
- # XXX-TODO: care for non Japanese.
- my $charset = 'euc-jp';
+ my $charset = $curproc->language_of_html_file();
croak("src_dir not defined") unless defined $src_dir;
croak("src_dir not exists") unless -d $src_dir;