GithubHelp home page GithubHelp logo

Comments (5)

mcbain avatar mcbain commented on July 20, 2024

I already tried all the stackoverflow hints setting the correct locale or adding #encoding: utf-8 as file header to package.rb without success.

from deb-s3.

krobertson avatar krobertson commented on July 20, 2024

Do you have a link to the deb to test against?

from deb-s3.

mcbain avatar mcbain commented on July 20, 2024

I was using deb-s3 from a Teamcity build configuration, which uses POSIX settings for all locale for some reason (maybe becasue agent process is started with ubuntu start-stop-deamon).
Setting all locale variables to a UTF-8 locale fixed the problem.

http://ppa.launchpad.net/chris-lea/node.js/ubuntu/pool/main/n/nodejs/nodejs_0.10.28-1chl1~trusty1_amd64.deb

from deb-s3.

krobertson avatar krobertson commented on July 20, 2024

I think this is fixed with some of the recent changes. Ruby 1.9 complicating string encoding a lot.

Changed it so all code files are utf-8, also changed it so that the mime type of the file being uploaded is set to octet stream. Noticed that tends to be more the proper handling for apt, while before we were uploading with text/plain and the coding of "us-ascii", so not ideal to utf8.

from deb-s3.

kedare avatar kedare commented on July 20, 2024

Hello,

Are you sure this has been fixed ? I just had the same issue with a package I try to upload :
/var/lib/gems/2.1.0/gems/deb-s3-0.7.1/lib/deb/s3/package.rb:283:in `block (2 levels) in parse_control': invalid byte sequence in US-ASCII (ArgumentError)

There are special characters in the author's name

from deb-s3.

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.