[fossil-users] Single quotes in filenames

2012-08-22 Thread Tomek Kott
Hi folks,

I have a file name with a single quote -- ' -- in the name. This is legal
in windows, and file.c allows it (search for [] here:
http://fossil-scm.org/index.html/artifact/836eeba3d22b48d156d349a9854522b572112226).
However, trying to move or rename the file fails (even when enclosed within
double quotes).

fossil.exe: SQLITE_ERROR: near s: syntax error
fossil.exe: near s: syntax error
UPDATE vfile SET pathname=' ** @ T's.eps' WHERE pathname=' *** @
T's.eps' AND vid=347

Note: I cut out the path and long file name to point out where the error
is. I don't want to start a illegal characters argument, and I don't care
if the solution is don't allow single quotes in file names or properly
escape single quotes in file names. I can't remember having any trouble
when adding, but perhaps I did a dump add (i.e., * ).

Anecdotaly, it appears that simply using two single-quotes (within double
quotes) properly escapes the single quote within the name, allowing SQLite
to process it.

Tomek
___
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] Is there a way to disable wiki links when using HTML?

2012-08-22 Thread Rene

On 2012-08-21 07:21, Stuart Rackham wrote:

On 21/08/12 17:08, rene wrote:

  nowiki?


I tried enveloping the HTML in the nowiki tag but it had not effect.
I also took a look at the the source in wikiformat.c for clues but it
looks to me like the nextRawToken() function is unconditionally
parsing wiki links.


On Tue, 21 Aug 2012 05:10:04 +0200, 
fossil-users-boun...@lists.fossil-scm.org wrote:

Hi

The text in my HTML wiki pages contains square brackets and they 
are

being translated into HTML links to non-existent wiki pages.  I've
ticked the 'Use HTML as wiki markup language' configuration option 
to

allow me to use pure HTML in my wiki pages but I've been unable to
find a way of disabling wiki links [...]. Does anyone know how I 
can

do this?

Cheers, Stuart
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Weird I just used
nowiki

h2this is a footnote /h2
[Footnote|http://localhost:8080/wikiedit]

/nowiki

and the link is not activated i just get plain 
[Footnote|http://localhost:8080/wikiedit]


I used Fossil version [b6a7e52c93] 2012-08-22 11:51:01
--
Rene
___
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] Single quotes in filenames

2012-08-22 Thread David Given
On 22/08/12 21:06, Tomek Kott wrote:
[...]
 fossil.exe: SQLITE_ERROR: near s: syntax error
 fossil.exe: near s: syntax error
 UPDATE vfile SET pathname=' ** @ T's.eps' WHERE pathname=' *** @
 T's.eps' AND vid=347

From add.c:

  db_multi_exec(
UPDATE vfile SET pathname='%s' WHERE pathname='%s' AND vid=%d,
zNew, zOrig, vid
  );

Should that %s should be a %q?

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
│ --- Conway's Game Of Life, in one line of APL



signature.asc
Description: OpenPGP digital signature
___
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] Is there a way to disable wiki links when using HTML?

2012-08-22 Thread Stuart Rackham



On 23/08/12 08:09, Rene wrote:

On 2012-08-21 07:21, Stuart Rackham wrote:

On 21/08/12 17:08, rene wrote:

  nowiki?


I tried enveloping the HTML in the nowiki tag but it had not effect.
I also took a look at the the source in wikiformat.c for clues but it
looks to me like the nextRawToken() function is unconditionally
parsing wiki links.



On Tue, 21 Aug 2012 05:10:04 +0200, fossil-users-boun...@lists.fossil-scm.org
wrote:

Hi

The text in my HTML wiki pages contains square brackets and they are
being translated into HTML links to non-existent wiki pages.  I've
ticked the 'Use HTML as wiki markup language' configuration option to
allow me to use pure HTML in my wiki pages but I've been unable to
find a way of disabling wiki links [...]. Does anyone know how I can
do this?

Cheers, Stuart
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Weird I just used
nowiki

h2this is a footnote /h2
[Footnote|http://localhost:8080/wikiedit]

/nowiki

and the link is not activated i just get plain
[Footnote|http://localhost:8080/wikiedit]

I used Fossil version [b6a7e52c93] 2012-08-22 11:51:01


I think this is because  the 'Use HTML as wiki markup language' option is not 
ticked, I need it ticked so I can use unsantized HTML, if this option is not 
ticked tags not listed in http://fossil-scm.org/xfer/wiki_rules are escaped.
nowiki does suppress wiki links but only if the 'Use HTML as wiki markup 
language' option is ticked.


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


[fossil-users] Mailing list messages dropped

2012-08-22 Thread Stuart Rackham

Apologies for the noise, but I've tried twice (around 30 hours ago and 15
minutes ago) to reply to this message:
http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg09409.html
but my replies seem to have been silently dropped.

I know that I can reply because I've just replied to another message on the
same thread and it appeared immediately:
http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg09413.html

Any ideas why this might be?


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


[fossil-users] Mailing list messages dropped

2012-08-22 Thread Simon Tremblay
My last one in the same thread (Re: [fossil-users] Is there a way to disable 
wiki links when using HTML?) seems to have been dropped from the mailing list 
too.

But we both appeared in the fossil-users Digest, Vol 55, Issue 42‏.

It is indeed odd.

---
Simon Tremblay
---


  ___
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] Mailing list messages dropped

2012-08-22 Thread Stuart Rackham


On 23/08/12 17:03, Simon Tremblay wrote:

My last one in the same thread (Re: [fossil-users] Is there a way to disable
wiki links when using HTML?
http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg09413.html)
seems to have been dropped from the mailing list too.

But we both appeared in the fossil-users Digest, Vol 55, Issue 42‏.

It is indeed odd.

---
Simon Tremblay
---


Hi Simon

A message from the list authored by you to the thread arrived in my mailbox
about 10 mins ago, it starts:

I just did some tests on my fossil (version: 2012-08-08 11:25:57).

Is this the one that was dropped?

It's not on 
http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/index.html though.



Cheers, Stuart






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


___
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] Mailing list messages dropped

2012-08-22 Thread Stuart Rackham

Hi Simon

I just replied to that dropped message of yours that just came through (it was 
the actual message not the digest BTW), but it too seems to have disappeared 
into the Ether.


Cheers, Stuart

On 23/08/12 17:03, Simon Tremblay wrote:

My last one in the same thread (Re: [fossil-users] Is there a way to disable
wiki links when using HTML?
http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg09413.html)
seems to have been dropped from the mailing list too.

But we both appeared in the fossil-users Digest, Vol 55, Issue 42‏.

It is indeed odd.

---
Simon Tremblay
---




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


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