xls icon indicating copy to clipboard operation
xls copied to clipboard

when read rich or phonetic with EOF,then read it at next continue

Open gr258 opened this issue 7 years ago • 2 comments

In get_string function,when read rich or phonetic with EOF,the w.continue_rich and w.continue_apsb are not correct,it shout sub read count,then read the left count at next continue stream.

gr258 avatar Jul 20 '18 06:07 gr258

I dont't think this patch is acceptable, you can add your change but you can't remove the other feature like removing ver5 support and others

make sure just add something and don't affect others.

extrame avatar Sep 05 '18 09:09 extrame

I dont't know the meaning of "removing ver5 support".In the first "else" branch, the w.Is5ver is false, so the next "if w.Is5ver " is a dead code,that's why i remove this condition.

code: if w.Is5ver { var bts = make([]byte, size) _, err = buf.Read(bts) res = string(bts) } else { ...... if w.Is5ver { seek_size = int64(2 * richtext_num) } else { seek_size = int64(4 * richtext_num) } ......

gr258 avatar Sep 17 '18 02:09 gr258