fix #21
Merge pull request #8 from maxiaojun/master

Fix of Issue 21 on Google Code
Fix reading files with very long lines

I hit this crash on Mac OS X while processing a file with 1 MB in
only one line.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000100456000
0x00007fff82eb4337 in memmove$VARIANT$sse3x ()
(gdb) bt
 #0  0x00007fff82eb4337 in memmove$VARIANT$sse3x ()
 #1  0x00007fff82f2fe97 in fgets ()
 #2  0x000000010000135d in convert (input_file=0x1001039a0
 "/Users/jjgod/Downloads/昨日的世界/mobi7/z.html",
 output_file=0x1001000e0 "n.html", config_file=0x1001023f0 "zht2zhs.ini")
at /Users/jjgod/Codes/cpp/OpenCC/src/tools/opencc.c:81
 #3  0x000000010000176e in main (argc=7, argv=0x7fff5fbff920) at
/Users/jjgod/Codes/cpp/OpenCC/src/tools/opencc.c:185

The solution I found is to avoid using the fragile fgets() and
memory reallocation and replace it with simple fread() and fseek().
Merge pull request #12 from jjgod/master

Fix reading files with very long lines
fix #26; BOM handling
Fix #17; Newline handling
Fix 'Fix reading files with very long lines'

Should have closed string buffer when not enough amount of text is read.
Fix typo in enum

OPENCC_ERROR_ENCODIND -> OPENCC_ERROR_ENCODING
Merge pull request #14 from jjgod/master

Typo and bug fix for reading
Add a few technology terms to dictionary
Correct the bit offset
Revise the fread loop.  Use a lookahead buffer as a drop-in replacement for the erroneous fseek() function
Merge pull request #16 from rueycheng/master

Replace the fseek() call with a true lookahead buffer in tools/opencc.c
Merge pull request #13 from maxiaojun/master

Fix of Issue 26 on Google Code
Merge pull request #15 from MnO2/master

Add a few technology terms to dictionary
修正to_cn辭典格式
增加「峯」到「峰」的繁簡、臺灣用法轉換。
Merge pull request #17 from lotem/master

增加「峯」到「峰」的繁簡、臺灣用法轉換。
增加日文新字體異體字
Merge branch 'master' of https://github.com/BYVoid/OpenCC