Re: [fossil-users] filename contains illegal characters

2012-11-27 Thread Jan Nijtmans
2012/11/25 Jan Nijtmans jan.nijtm...@gmail.com:

 New test version in [d3bee356ba]. It changes the
 filename contains illegal characters fatal into
 a warning, which should make your situation more
 managable: Even though files containing '\' still
 cannot be handled, they don't stop the
 fossil addremove anymore from adding other
 files.

New version, including the unicode-glob setting
in [71cd228b0e].

This version allows all characters in filenames that
are permissible on UNIX, except '\'. And those files
can be checked out using Cygwin and Windows as
well, using Cygwin's solution: In the file system
translate those characters to 'safe' characters in
the range U+F000 to U+F0FF (which should never
itself occur in valid fossil cards)

I cannot find any security-risks with this. The only
possible security risk I found is unrelated to this
change, and it is already fixed in [897dfa48b4]
(Thanks, Richard!)

Anyone who thinks this is a bad idea? Please, speak
up now, otherwise Richard might approve this!

Regards,
Jan Nijtmans
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Fossil as DLL?

2012-11-27 Thread Gilles
On Sun, 25 Nov 2012 13:31:32 -0500, Tomek Kott
tkott.li...@outlook.com wrote:
You might want to take a look at the work done for SharpFossil:
http://repository.mobile-developers.de/cgi-bin/ikoch/sharpfossil/index

Although it hasn't been worked on in a while, I think some of the commands
you are looking for have been implemented as a wrapper useable by C# programs. 

Thanks, I'll check it out.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] build of trunk fail on cygwin

2012-11-27 Thread Martin Gagnon
Hi,

I recently try to compile fossil under cygwin and it fail to build.

Version from today:
   4f8c8975bc4d1303a604da339f869c32eb0da960 2012-11-27 16:26:29 UTC

$ make
...
cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/export.o -c
bld/export_.c
cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/file.o -c bld/file_.c
./src/file.c: In function 'file_set_mtime':
./src/file.c:401:18 error: array type has incomplete element type
src/main.mk:584: recipe for target `bld/file.o' failed
make: *** [bld/file.o] Error 1
...

After digging a bit, I found that the problematic code was added in this
commit:

http://fossil-scm.org/index.html/info/0c37874941c89728f6cc0063a2a44b8bc2a38c6c

I temporarily get over the problem by including sys/time.h

I'm not sure if it's the proper fix, but it work for me.

Regards

-- 
Martin G.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] build of trunk fail on cygwin

2012-11-27 Thread Richard Hipp
On Tue, Nov 27, 2012 at 9:15 PM, Martin Gagnon eme...@gmail.com wrote:

 Hi,

 I recently try to compile fossil under cygwin and it fail to build.

 Version from today:
4f8c8975bc4d1303a604da339f869c32eb0da960 2012-11-27 16:26:29 UTC

 $ make
 ...
 cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/export.o -c
 bld/export_.c
 cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/file.o -c
 bld/file_.c
 ./src/file.c: In function 'file_set_mtime':
 ./src/file.c:401:18 error: array type has incomplete element type
 src/main.mk:584: recipe for target `bld/file.o' failed
 make: *** [bld/file.o] Error 1
 ...

 After digging a bit, I found that the problematic code was added in this
 commit:

 http://fossil-scm.org/index.html/info/0c37874941c89728f6cc0063a2a44b8bc2a38c6c

 I temporarily get over the problem by including sys/time.h


That breaks the MSVC build.

Can you suggest another fix?



 I'm not sure if it's the proper fix, but it work for me.

 Regards

 --
 Martin G.

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] build of trunk fail on cygwin

2012-11-27 Thread Martin Gagnon
On Tue, Nov 27, 2012 at 10:03 PM, Richard Hipp d...@sqlite.org wrote:



 On Tue, Nov 27, 2012 at 9:15 PM, Martin Gagnon eme...@gmail.com wrote:

 Hi,

 I recently try to compile fossil under cygwin and it fail to build.

 Version from today:
4f8c8975bc4d1303a604da339f869c32eb0da960 2012-11-27 16:26:29 UTC

 $ make
 ...
 cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/export.o -c
 bld/export_.c
 cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/file.o -c
 bld/file_.c
 ./src/file.c: In function 'file_set_mtime':
 ./src/file.c:401:18 error: array type has incomplete element type
 src/main.mk:584: recipe for target `bld/file.o' failed
 make: *** [bld/file.o] Error 1
 ...

 After digging a bit, I found that the problematic code was added in this
 commit:

 http://fossil-scm.org/index.html/info/0c37874941c89728f6cc0063a2a44b8bc2a38c6c

 I temporarily get over the problem by including sys/time.h


 That breaks the MSVC build.

 Can you suggest another fix?


Cygwin don't define _WIN32, but __CYGWIN__, so you could put:

---
#if defined(__CYGWIN__)
# include sys/time.h
#endif
---

on top of src/file.c

Regards,

-- 
Martin G.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users