[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] Cannot query Japanese characters



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