Index: /lang/perl/Text-MeCab/trunk/Makefile.PL
===================================================================
--- /lang/perl/Text-MeCab/trunk/Makefile.PL (revision 4350)
+++ /lang/perl/Text-MeCab/trunk/Makefile.PL (revision 7593)
@@ -46,4 +46,12 @@
     "-DTEXT_MECAB_CONFIG='\"$result->{config}\"'",
 );
+
+if ($^O eq 'MSWin32') { # save us, the Win32 puppies
+    @define = (
+        qq(-DTEXT_MECAB_ENCODING=\\"$result->{encoding}\\"),
+        qq(-DTEXT_MECAB_CONFIG=\\"$result->{config}\\"),
+    );
+}
+
 if ($debugging) {
     push @define, "-DTEXT_MECAB_DEBUG=1";
