lib/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb in tmail-1.2.7 vs lib/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb in tmail-1.2.7.1
- old
+ new
@@ -42,11 +42,11 @@
def next_state(c)
# for each byte we get its class
# if it is first byte, we also get byte length
byteCls = @_mModel['classTable'][c[0]]
if @_mCurrentState == EStart
- @_mCurrentBytePos = 0
- @_mCurrentCharLen = @_mModel['charLenTable'][byteCls]
+ @_mCurrentBytePos = 0
+ @_mCurrentCharLen = @_mModel['charLenTable'][byteCls]
end
# from byte's class and stateTable, we get its next state
@_mCurrentState = @_mModel['stateTable'][@_mCurrentState * @_mModel['classFactor'] + byteCls]
@_mCurrentBytePos += 1
return @_mCurrentState