From: Horacio Sanson <hsanson@gmail.com>
To: sup-devel@rubyforge.org
Subject: [sup-devel] Cannot query Japanese characters
Date: Mon, 25 Apr 2011 10:23:19 +0900 [thread overview]
Message-ID: <201104251023.19659.hsanson@gmail.com> (raw)
I like sup's idea and have a lot of hope in heliotrope but unfortunately both
have problems when dealing with my language: Japanese.
When I put a search string like this "subject: 手紙" I get the following crash:
27.0.0.1 - - [25/Apr/2011 10:17:17] "GET /search?q=%E6%89%8B%E7%B4%99
HTTP/1.1" 200 12306 0.0169
localhost.localdomain - - [25/Apr/2011:10:17:17 JST] "GET
/search?q=%E6%89%8B%E7%B4%99 HTTP/1.1" 200 12306
http://localhost:8042/search?q=%E6%89%8B%E7%B4%99 ->
/search?q=%E6%89%8B%E7%B4%99
127.0.0.1 - - [25/Apr/2011 10:17:17] "GET /favicon.ico HTTP/1.1" 404 441
0.0007
localhost.localdomain - - [25/Apr/2011:10:17:17 JST] "GET /favicon.ico
HTTP/1.1" 404 441
- -> /favicon.ico
HeliotropeServer::RequestError - can't parse query: parse error: line 1:
syntax error, unexpected $end, expecting WORD or '"' or '(':
bin/heliotrope-server:161:in `rescue in block in <class:HeliotropeServer>'
bin/heliotrope-server:138:in `block in <class:HeliotropeServer>'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:1165:in `call'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:1165:in `block in
compile!'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:738:in
`instance_eval'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:738:in
`route_eval'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:722:in `block (2
levels) in route!'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:772:in `block in
process_route'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:769:in `catch'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:769:in
`process_route'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:721:in `block in
route!'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:720:in `each'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:720:in `route!'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:857:in `dispatch!'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:648:in `block in
call!'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:822:in
`instance_eval'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:822:in `block in
invoke'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:822:in `catch'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:822:in `invoke'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:648:in `call!'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/base.rb:633:in `call'
/var/lib/gems/1.9.1/gems/sinatra-1.2.3/lib/sinatra/showexceptions.rb:21:in
`call'
/var/lib/gems/1.9.1/gems/rack-1.2.2/lib/rack/lint.rb:48:in `_call'
/var/lib/gems/1.9.1/gems/rack-1.2.2/lib/rack/lint.rb:36:in `call'
/var/lib/gems/1.9.1/gems/rack-1.2.2/lib/rack/showexceptions.rb:24:in `call'
/var/lib/gems/1.9.1/gems/rack-1.2.2/lib/rack/commonlogger.rb:18:in `call'
/var/lib/gems/1.9.1/gems/rack-1.2.2/lib/rack/content_length.rb:13:in `call'
/var/lib/gems/1.9.1/gems/rack-1.2.2/lib/rack/handler/webrick.rb:52:in
`service'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
127.0.0.1 - - [25/Apr/2011 10:17:28] "GET
/search?q=subject%3A+%E6%89%8B%E7%B4%99 HTTP/1.1" 500 92955 0.0266
localhost.localdomain - - [25/Apr/2011:10:17:28 JST] "GET
/search?q=subject%3A+%E6%89%8B%E7%B4%99 HTTP/1.1" 500 92955
http://localhost:8042/search?q=%E6%89%8B%E7%B4%99 ->
/search?q=subject%3A+%E6%89%8B%E7%B4%99
127.0.0.1 - - [25/Apr/2011 10:17:28] "GET /__sinatra__/500.png HTTP/1.1" 304 -
0.0006
localhost.localdomain - - [25/Apr/2011:10:17:28 JST] "GET /__sinatra__/500.png
HTTP/1.1" 304 0
http://localhost:8042/search?q=subject%3A+%E6%89%8B%E7%B4%99 ->
/__sinatra__/500.png
127.0.0.1 - - [25/Apr/2011 10:17:28] "GET /favicon.ico HTTP/1.1" 404 441
0.0008
localhost.localdomain - - [25/Apr/2011:10:17:28 JST] "GET /favicon.ico
HTTP/1.1" 404 441
I am running the latest heliotrope from git with ruby 1.9.2 from the default
Kubuntu 10.10 distribution.
--
regards,
Horacio Sanson
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next reply other threads:[~2011-04-25 2:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-25 1:23 Horacio Sanson [this message]
2011-04-26 4:49 ` William Morgan
2011-04-29 4:52 ` William Morgan
2011-05-01 15:35 ` Horacio Sanson
2011-05-01 15:46 ` Horacio Sanson
2011-05-03 14:24 ` Horacio Sanson
2011-05-03 22:26 ` William Morgan
2011-05-04 1:42 ` Horacio Sanson
2011-05-04 2:03 ` Horacio Sanson
2011-05-04 16:56 ` William Morgan
2011-05-06 3:30 ` Horacio Sanson
2011-06-08 5:21 ` William Morgan
2011-06-09 13:48 ` Horacio Sanson
2011-06-09 14:08 ` Horacio Sanson
2011-06-09 22:46 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201104251023.19659.hsanson@gmail.com \
--to=hsanson@gmail.com \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox