Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError - invalid byte sequence in UTF-8 #17

Closed
antage opened this issue Aug 18, 2010 · 7 comments
Closed

ArgumentError - invalid byte sequence in UTF-8 #17

antage opened this issue Aug 18, 2010 · 7 comments
Labels

Comments

@antage
Copy link

antage commented Aug 18, 2010

$ /opt/ruby-1.9.2/bin/ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
$ /opt/ruby-1.9.2/bin/gem -v
1.3.7
$ echo $LANG
ru_RU.utf8

$ cd workspace/wiki && /opt/ruby-1.9.2/bin/gollum
== Sinatra/1.0 has taken the stage on 4567 for development with backup from Thin
>> Thin web server (v1.2.7 codename No Hup)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:4567, CTRL+C to stop

After hit http://localhost:4567/ I got error:
ArgumentError - invalid byte sequence in UTF-8:
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/ruby1.9.rb:3:in ord' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/ruby1.9.rb:3:ingetord'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/internal/loose.rb:130:in legacy_loose_object?' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/internal/loose.rb:43:inget_raw_object'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/internal/loose.rb:32:in []' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/repository.rb:84:inblock in get_raw_object_by_sha1'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/repository.rb:83:in each' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/repository.rb:83:inget_raw_object_by_sha1'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/repository.rb:334:in walk_log' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/repository.rb:287:inlog'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby/repository.rb:306:in rev_list' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby.rb:68:inblock in rev_list'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby.rb:224:in block in try_run' /opt/ruby-1.9.2/lib/ruby/1.9.1/timeout.rb:57:intimeout'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby.rb:223:in try_run' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/git-ruby.rb:68:inrev_list'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/commit.rb:94:in find_all' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/grit-2.1.0/lib/grit/repo.rb:261:incommit'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/page.rb:254:in find' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/wiki.rb:74:inpage'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/frontend/app.rb:132:in show_page_or_file' /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/frontend/app.rb:38:inblock in class:App'
/opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:865:in `call'
....

@CameronGilroy
Copy link

This is a problem that I am getting as well

@saberma
Copy link

saberma commented Aug 19, 2010

I got the same problem.

@dstrelau
Copy link

Looks like this is a bug in grit.

http://github.com/mojombo/grit/issues#issue/24

@lamnk
Copy link

lamnk commented Aug 24, 2010

Got the same issue with 1.9.2-head

@AndreasOM
Copy link

Same here with 1.9.2-head.
Switched back to 1.8.7 and now it's working.

@postmodern
Copy link

@mojombo merged a fix for this into Grit around August. http://github.com/mojombo/grit/commit/0a80ba282d5864cb3e2ca5868291424932596ddd

@atmos atmos closed this as completed Apr 14, 2012
@mmeroberts
Copy link

Newbie question- running on windows but seeing this - what do I have to do to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants