Redcloth and instiki

Discussion in 'Ruby' started by Guillaume Marcais, Apr 7, 2004.

  1. While saving some pages with instiki and get the following error
    message:

    http://192.168.3.1:2505/show/CmWonders -> /save
    [2004-04-06 23:07:47] ERROR RegexpError: unmatched ):
    /\250\371\251M\250\371\25
    M|[!"\#\$%&'\*\+,\-\.\/:;=\?@\\\^_`\|~{(\[])
    \+

    ((?:(?:\([^)]+\))?(?:\{[^}]+\})?(?:\[[^\]]+\])?
    (?:\{[^}]+\})?(?:\[[^\]]+\])?(?:\([^)]+\))?|(?:\[[^\]]+\])?(?:
    \{[^}]+\})?(?:\([
    )]+\))?))
    (?::(\S+?))?
    (\S(?:[^\n]|\n(?!\n))*?)

    ([!"\#\$%&'\*\+,\-\.\/:;=\?@\\\^_`\|~]*?)
    \+

    (?=[\])}]|[!"\#\$%&'\*\+,\-\.\/:;=\?@\\\^_`\|~]
    ?|<|\s|$)/
    ./libraries/redcloth.rb:465:in `span'
    ./libraries/redcloth.rb:454:in `each'
    ./libraries/redcloth.rb:454:in `span'
    ./libraries/redcloth.rb:639:in `glyphs'
    ./libraries/redcloth.rb:625:in `collect'
    ./libraries/redcloth.rb:625:in `glyphs'
    ./libraries/redcloth.rb:277:in `to_html'
    ./app/models/page.rb:24:in `display_content'
    (erb):12:in `template_result'
    ./libraries/action_controller_servlet.rb:94:in `template_result'
    ./libraries/action_controller_servlet.rb:40:in `render'
    ./libraries/action_controller_servlet.rb:50:in `render_action'
    ./app/controllers/wiki.rb:25:in `do_show'
    ./libraries/action_controller_servlet.rb:74:in `send'
    ./libraries/action_controller_servlet.rb:74:in `perform_action'
    ./libraries/action_controller_servlet.rb:17:in `do_GET'
    /usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
    `__send__'
    /usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
    `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:92:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:54:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:150:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:144:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:94:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:89:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:89:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:79:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:79:in `start'
    ./libraries/web_controller_server.rb:77:in `start_server'
    ./libraries/web_controller_server.rb:19:in `initialize'
    instiki.rb:17:in `new'
    instiki.rb:17

    # ruby -v
    ruby 1.8.1 (2004-03-31) [i586-linux-gnu]

    and instiki 2.5.

    Do you need to see the input? Any fix?

    Guillaume.
     
    Guillaume Marcais, Apr 7, 2004
    #1
    1. Advertising

  2. Guillaume Marcais wrote:

    > While saving some pages with instiki and get the following error
    > message:
    >
    > http://192.168.3.1:2505/show/CmWonders -> /save
    > [2004-04-06 23:07:47] ERROR RegexpError: unmatched ):
    > /\250\371\251M\250\371\25M|[!"\#\$%&'\*\+,\-\.\/:;=\?@\\\^_`\|~{(\[])


    the problem is this garbage showing up at the beginning of a regexp:

    /\250\371\251M\250\371\25M

    are you running instiki under a different character set?

    _why
     
    why the lucky stiff, Apr 7, 2004
    #2
    1. Advertising

  3. No, I am not. Some system info:

    [gus@gusmac gus]$ uname -a
    Darwin gusmac.local 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar 5
    14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC Power
    Macintosh powerpc
    [gus@gusmac gus]$ set | grep LC_
    [gus@gusmac gus]$

    There is not a single local variable set! The system is running in
    French, although it was all non accented English text.

    Guillaume.

    Le 7 avr. 04, à 15:34, why the lucky stiff a écrit :

    > Guillaume Marcais wrote:
    >
    >> While saving some pages with instiki and get the following error
    >> message:
    >>
    >> http://192.168.3.1:2505/show/CmWonders -> /save
    >> [2004-04-06 23:07:47] ERROR RegexpError: unmatched ):
    >> /\250\371\251M\250\371\25M|[!"\#\$%&'\*\+,\-\.\/:;=\?@\\\^_`\|~{(\[])

    >
    > the problem is this garbage showing up at the beginning of a regexp:
    >
    > /\250\371\251M\250\371\25M
    >
    > are you running instiki under a different character set?
    >
    > _why
    >
     
    Guillaume Marcais, Apr 8, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Heinemeier Hansson
    Replies:
    13
    Views:
    294
    Jos Backus
    Apr 19, 2004
  2. Daniel Berger

    Problem with Instiki and Windows

    Daniel Berger, Aug 13, 2004, in forum: Ruby
    Replies:
    3
    Views:
    106
    Mauricio Fernández
    Aug 13, 2004
  3. Peña, Botp
    Replies:
    1
    Views:
    170
    David Heinemeier Hansson
    Sep 19, 2004
  4. James Edward Gray II

    Instiki/Redcloth Escaping

    James Edward Gray II, May 10, 2005, in forum: Ruby
    Replies:
    3
    Views:
    244
    Assaph Mehr
    May 11, 2005
  5. levander
    Replies:
    3
    Views:
    143
    rking
    Jun 24, 2007
Loading...

Share This Page