Giter VIP home page Giter VIP logo

Comments (9)

rvodden avatar rvodden commented on June 3, 2024 3

Myself at @perlun are in the process of resurrecting the project. I don't want this issue to get lost so I'm re-openong. We've not discussed priorities yet, however internationalization is likely to be high.

from ruby-git.

ut avatar ut commented on June 3, 2024 2

It seems that this issue has been solved in the meantime. I succesfully checked it with the example provided by @fwal

from ruby-git.

ut avatar ut commented on June 3, 2024

I can confirm this issue, with version 1.2.5, ruby 1.9.3 and the error message "invalid byte squence in UTF-8"

A possible, imperfect workaround would be to replace in lib/git/lib.rb, line 672..

    def command_lines(cmd, opts = [], chdir = true, redirect = '')
       command(cmd, opts, chdir).split("\n")
    end

...with...

    def command_lines(cmd, opts = [], chdir = true, redirect = '')
      line = command(cmd, opts, chdir)
      if !line.valid_encoding?
        line = line.unpack('C*').pack('U*')
      end
      line.split("\n")
  end

from ruby-git.

Bertg avatar Bertg commented on June 3, 2024

+1 Having the same issue

The solution proposed by @ut works.

from ruby-git.

Pilooz avatar Pilooz commented on June 3, 2024

+1 too, this works fine for me.

from ruby-git.

ut avatar ut commented on June 3, 2024

Thanks for the feedback, I made a pull request out of this workaround.

If someone wants to use the gem with this fix right now, just use my fork

from ruby-git.

fwal avatar fwal commented on June 3, 2024

Seems abandoned 🗑

from ruby-git.

ut avatar ut commented on June 3, 2024

Looking at the queue of the waiting PR, that's a pity.

from ruby-git.

fwal avatar fwal commented on June 3, 2024

That's awesome @ut, then I'll close this for real 🎉

from ruby-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.