1--- migemo-server.orig	2001-08-13 18:30:51.000000000 +0900
2+++ migemo-server	2011-08-22 22:45:10.000000000 +0900
3@@ -10,7 +10,6 @@
4 # the GNU General Public License version 2.
5 #
6
7-$KCODE = "e"
8 require 'migemo'
9 require 'cgi'
10 require 'socket'
11@@ -73,7 +72,7 @@
12   end
13
14   def print_form (socket)
15-    print_http (socket,
16+    print_http(socket,
17 		['HTTP/1.0 200',
18 		  'Content-type: text/html'],
19 		<<"EOF")
20@@ -111,7 +110,7 @@
21
22   def print_http (socket, header, body)
23     header.each { |h| socket.syswrite h + CRLF }
24-    socket.syswrite 'Content-Length: ' + body.size.to_s + CRLF
25+    socket.syswrite 'Content-Length: ' + body.bytesize.to_s + CRLF
26     socket.syswrite CRLF
27     socket.syswrite body
28   end
29