Fossil

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

5 check-ins using file src/main.c version 1902bcd3b4

2013-03-18
05:38
Correct inverted result of looks_like_binary() macro. Correct off-by-one error in the looks_like_utf16() function. Restore original meaning of the LOOK_CR and LOOK_LF flags. Restore LOOK_ODD flag, abstracting UTF-16 content inspection away from blob length. When performing byte swaps, do so consistently. Fix test cases to work with Tcl versions prior to 8.6. Add could_be_utf16() function to preform the preliminary blob checks. Adjustments to style and comments. check-in: e3f9a42b58 user: mistachkin tags: trunk
2013-03-17
09:54
remove the LOOK_ODD flag. It doesn't fit in looks_like_utf16() because it doesn't need each character to be scanned. check-in: d4fe8be6a3 user: jan.nijtmans tags: trunk
2013-03-16
06:46
move starts_with_utf16_bom() call out of looks_like_utf16(), so we do it only once. check-in: b58800e5eb user: jan.nijtmans tags: trunk
2013-03-15
15:02
Code changes for Android, suggested by Mark Janssen. check-in: d4d66d133a user: jan.nijtmans tags: trunk
14:53
Fixed a C99ism (decl after code). check-in: 123e4bc589 user: stephan tags: trunk