+2008-02-23 Daigo Moriwaki <daigo at debian dot org>
+
+ * [shogi-server]
+ - A comment is converted to EUC-JP and then written in a log.
+ Note that this convertion guesses the input encoding. Clients
+ are recommended to send EUC-JP compatible strings to the
+ server.
+
2008-02-21 Daigo Moriwaki <daigo at debian dot org>
* [util/players-graph.rb]
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+require 'kconv'
require 'getoptlong'
require 'thread'
require 'timeout'
move = array_str.shift
additional = array_str.shift
if /^'(.*)/ =~ additional
- comment = array_str.unshift("'*#{$1}")
+ comment = array_str.unshift("'*#{$1.toeuc}")
end
s = @game.handle_one_move(move, self)
@game.fh.print("#{comment}\n") if (comment && !s)