> -----Original Message----- > From: fossil-users-boun...@lists.fossil-scm.org [mailto:fossil-users- > boun...@lists.fossil-scm.org] On Behalf Of Stephan Beal > Sent: Monday, August 25, 2014 5:19 PM > To: Fossil SCM user's discussion > Subject: Re: [fossil-users] UTF-8 and Binary Files > > On Mon, Aug 25, 2014 at 10:52 PM, David Botham <dbot...@infoblox.com> > wrote: > > > 1. I am getting a lot of warnings about invalid UTF-8 characters > in configuration files I am typing by hand. I see any strange > characters in the files. Is there a way to find out which characters > are offending Fossil? I know I can suppress these warnings, but, it > seems strange to me that Fossil is seeing the characters in the first > place. > > > > Can you try looking at it in a hex editor, and see if your editor is
Yes, I will ... > perhaps hiding something from you? i remember a similar case coming up > once caused by a really long line length (a few kb, IIRC), but if you're > editing by hand, that is probably not the problem. > > > 2. Why doesn't Fossil like binary files? Just about every project > I work on has a SQLite3 database, which is a binary file. I will gladly > tell Fossil to suppress these warnings if I was sure Fossil was not > going to do something bad to them at some point in the future. > > > > Binary itself is not a problem, but we can't generate visual diffs of > binaries (because such a diff makes no sense). Fossil handles binary > files just fine, it just ignores them for certain purposes (e.g. diff > view generation). Thus it often considers what it thinks to be binary > files to be a "potential" error. > > To suppress them, see the binary-glob setting: > > [stephan@host:~/cvs/fossil/cwal/s2]$ f set | grep binary > binary-glob > diff-binary > > (apparently there _is_ an option to diff binaries - learning new things > all the time) > > Which you can make persistent by storing a file named .fossil- > settings/binary-glob in your repo (be sure to check it in). The contents > of the file is one blob pattern per line. > > e.g. > > [stephan@host:~/cvs/fossil/cwal/s2]$ l ../../libfossil/.fossil-settings/ > total 20 > drwxr-xr-x 2 stephan users 4096 Aug 14 19:39 . > drwxrwxr-x 18 stephan users 4096 Aug 23 19:52 .. > -rw-r--r-- 1 stephan stephan 18 Mar 25 17:11 binary-glob > -rw-r--r-- 1 stephan stephan 0 Mar 25 17:11 crnl-glob > -rw-r--r-- 1 stephan stephan 669 Aug 14 19:39 ignore-glob > -rw-r--r-- 1 stephan stephan 473 Mar 28 14:28 ignore-glob~ > -rw-r--r-- 1 stephan stephan 0 Jan 25 2014 ignore-glob.no-warn > [stephan@host:~/cvs/fossil/cwal/s2]$ cat ../../libfossil/.fossil- > settings/binary-glob > *.bmp > *.gif > *.png > > > -- > > ----- stephan beal > http://wanderinghorse.net/home/stephan/ > http://gplus.to/sgbeal > "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of > those who insist on a perfect world, freedom will have to do." -- Bigby > Wolf _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users