Giter Club home page Giter Club logo

Comments (13)

BurntSushi avatar BurntSushi commented on May 29, 2024 2

from bytecount.

Veedrac avatar Veedrac commented on May 29, 2024

Ah dangit, thanks so much for reporting this. I'm guessing the issue is

let mask = !(!0 >> ((utf8_chars.len() % chunksize) * 8));

and I have a patch at PR #54. I'm installing some cross platform testing stuff and should have confirmation soon.

from bytecount.

Veedrac avatar Veedrac commented on May 29, 2024

Yep, I can repro the issue and the fix works for me. Thanks again!

@llogiq We should CI this.

from bytecount.

llogiq avatar llogiq commented on May 29, 2024

Is there a CI that gives us native big-endian machines? Or do we need to setup qemu on a Travis job?

from bytecount.

Veedrac avatar Veedrac commented on May 29, 2024

https://github.com/japaric/trust looks nice. Looking through it mostly just seems to wrap https://github.com/rust-embedded/cross, which is what I used locally (so maybe just use cross?).

from bytecount.

infinity0 avatar infinity0 commented on May 29, 2024

The fix works for me over here too, thanks for the quick response!

from bytecount.

llogiq avatar llogiq commented on May 29, 2024

version 0.5.1 with the fix will be published soon.

from bytecount.

llogiq avatar llogiq commented on May 29, 2024

0.5.1 is published to crates.io.

from bytecount.

llogiq avatar llogiq commented on May 29, 2024

What architectures should we add to CI?

from bytecount.

BurntSushi avatar BurntSushi commented on May 29, 2024

I used mips, but any big-endian arch should be fine. https://github.com/BurntSushi/byteorder/blob/64c03fb383289f8e42b2892bf72297879777a238/.travis.yml#L8

from bytecount.

infinity0 avatar infinity0 commented on May 29, 2024

ppc64 and s390x if available are typically much faster than mips.

from bytecount.

infinity0 avatar infinity0 commented on May 29, 2024

Looking at that travis patch, does CROSS_TARGET actually run the tests? I would not have normally expected so... the bad code does compile successfully, but the test fails.

from bytecount.

alex avatar alex commented on May 29, 2024

FWIW, travis recently gained s390x support, so testing there should be easy-ish.

from bytecount.

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.