diff --git a/djvulibre-3.5.19-ja-encoding.patch b/djvulibre-3.5.19-ja-encoding.patch
new file mode 100644
index 0000000..d7f3ae9
--- /dev/null
+++ b/djvulibre-3.5.19-ja-encoding.patch
@@ -0,0 +1,11 @@
+diff -Naupr djvulibre-3.5.19.orig/i18n/ja/Makefile.in djvulibre-3.5.19/i18n/ja/Makefile.in
+--- djvulibre-3.5.19.orig/i18n/ja/Makefile.in 2007-03-25 22:48:29.000000000 +0200
++++ djvulibre-3.5.19/i18n/ja/Makefile.in 2007-06-11 13:59:52.000000000 +0200
+@@ -53,7 +53,6 @@ install: install-man
+
+ # Rules
+ nsdejavu.1: ${srcdir}/nsdejavu.1.in
+- LC_CTYPE=ja_JP.eucjp \
+ sed < ${srcdir}/nsdejavu.1.in > nsdejavu.1 \
+ -e 's,LIBDIR,${libdir},' -e 's,NSDEJAVUSO,${NSDEJAVU},'
+
diff --git a/djvulibre.spec b/djvulibre.spec
index 160905b..dd8ae1c 100644
--- a/djvulibre.spec
+++ b/djvulibre.spec
@@ -1,12 +1,13 @@
Summary: DjVu viewers, encoders, utilities and web browser plugin
Name: djvulibre
Version: 3.5.19
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
Group: Applications/Publishing
URL: http://djvu.sourceforge.net/
Source: http://dl.sf.net/djvu/djvulibre-%{version}.tar.gz
Patch0: djvulibre-3.5.18-plugin-manpage.patch
+Patch1: djvulibre-3.5.19-ja-encoding.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires(post): xdg-utils, /sbin/ldconfig
Requires(preun): xdg-utils
@@ -39,6 +40,7 @@ Development files for djvulibre.
%prep
%setup -q
%patch0 -p1 -b .plugin-manpage
+%patch1 -p1 -b .ja-encoding
# Remove leftover file (since we include the dir as %%doc)
%{__rm} -f doc/minilisp/.cvsignore
# Convert ISO8859-1 ja man pages to UTF-8 (still as of 3.5.19)
@@ -113,6 +115,9 @@ fi
%changelog
+* Mon Jun 11 2007 Matthias Saou 3.5.19-2
+- Include patch to remove LC_CTYPE for ja man pages, fixes sed 100% CPU issue.
+
* Fri Jun 8 2007 Matthias Saou 3.5.19-1
- Update to 3.5.19.
- Disable rpath on 64bit... not.