Fossil

Timeline
Login

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

6 check-ins using file src/main.c version 4c1953a125

2012-11-29
07:57
This change is intended to detect, during commit, whether some file contents cannot be interpreted as either UTF-8 or ASCII. This typically happens when the file is in the iso8859-1 (UNIX) or cp1252 (win32) encoding. Nothing very bad happens, only fossil cannot display the characters. For example, see: [http://core.tcl.tk/tcl/info/7559185e9a] It would be nice if fossil detects this situation, so the user has the choice to change the encoding to utf-8, or answer 'y' if this is intended. Probably missing is a 'latin-glob', 'non-utf8-glob' (any ideas for a better name?) setting. An improvement would be to allow the 'c' response, which aborts the commit but first converts it to utf-8 (assuming iso8859-1 on UNIX and cp1252 on win32) Another thing this change does is warn if the file contains long lines which cannot be handled by fossil. The user is given the chance to break the long lines into shorter ones. This cannot be done automatically. Maybe add a "longlines-glob" setting as well. Feedback welcome! check-in: 609ea54f7b user: mistachkin tags: improve_commit_warning
07:56
Fix a couple line length issues and modify an error message. check-in: 3527aa4474 user: mistachkin tags: trunk
01:45
Give the user the option to convert file into UTF8 if they are in some other encoding when committed. The commit aborts regardless, to give the operator an opportunity to retest the changes before committing again. check-in: 22b570f4f3 user: drh tags: trunk
2012-11-28
23:05
Serious bug fix: Avoid deleting the respository if the repository is in the checkout and you do a "fossil close". check-in: fcdeaa2909 user: drh tags: trunk
20:37
Add the "fossil cat" command, which is an alias for "fossil finfo -p" check-in: 607ff0855c user: drh tags: trunk
19:28
Take care that xfer error messages and user prompts always begin at the start of a new line. check-in: f1ef22136f user: drh tags: trunk