Skip to content

Commit

Permalink
* tdiary/lang/ja.rb: [workaround] support 'from encoding' specified by
Browse files Browse the repository at this point in the history
@options['encode_from'].

git-svn-id: https://tdiary.svn.sourceforge.net/svnroot/tdiary/trunk/core@3177 7f22e88f-374d-0410-998f-c91420d97ba2
  • Loading branch information
tadatadashi committed Jan 6, 2008
1 parent c53b98a commit c36cbaf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2008-01-06 TADA Tadashi <sho@spc.gr.jp>
* tdiary/lang/ja.rb: [workaround] support 'from encoding' specified by @options['encode_from'].

2008-01-05 TADA Tadashi <sho@spc.gr.jp>
* plugin/00default.rb: hide comment form when over comments per day on mobile mode.

Expand Down
4 changes: 2 additions & 2 deletions tdiary.rb
@@ -1,13 +1,13 @@
=begin
== NAME
tDiary: the "tsukkomi-able" web diary system.
tdiary.rb $Revision: 1.326 $
tdiary.rb $Revision: 1.327 $
Copyright (C) 2001-2007, TADA Tadashi <sho@spc.gr.jp>
You can redistribute it and/or modify it under GPL2.
=end

TDIARY_VERSION = '2.2.0.20080105'
TDIARY_VERSION = '2.2.0.20080106'

$:.insert( 1, File::dirname( __FILE__ ) + '/misc/lib' )

Expand Down
1 change: 1 addition & 0 deletions tdiary/lang/ja.rb
Expand Up @@ -32,6 +32,7 @@ def to_native( str, charset = nil )
else
''
end
from = @options['encode_from'] if @options['encode_from'] and from.size == 0
NKF::nkf( "-m0 -#{from}e", str )
end

Expand Down

0 comments on commit c36cbaf

Please sign in to comment.