Giter Club home page Giter Club logo

utf-8-misc's People

Contributors

hoehrmann avatar

Stargazers

 avatar Jevin Sweval avatar Igor avatar Cyril avatar valiet avatar Steffen avatar zuo avatar ashfinal avatar Ivan Pribec avatar neguse avatar Jens Yllman avatar Brick avatar Aby Louw avatar Ondřej Čertík avatar Rico P avatar  avatar deger avatar  avatar  avatar  avatar  avatar Jun Liu avatar Song Li avatar lyrachord avatar Kenneth J Davis avatar Pavel Medvedev avatar Argentumbolo avatar James Hernandez avatar  avatar Star avatar Lorcán Mc Donagh avatar X avatar Isabella Bosia avatar Paul Findlay avatar boris ilov avatar

Watchers

Jevin Sweval avatar  avatar James Cloos avatar Lorcán Mc Donagh avatar boris ilov avatar

utf-8-misc's Issues

utf8_arith.h - utf8_decode_step() doesn't decode all valid sequences correct

The utf8_decode_step in utf8_arith.h doesn't work for various valid sequences, e.g. "\xED\x81\x80" should be correctly decoded to codepoint U+D040, but the function decodes it wrongly to U+D000 (tested on macOS with clang from XCode 9.2 with unoptimized debug code).

Failing UTF-8 sequences start with 0xE0, 0xED, 0xF1, 0xF2 and 0xF3.
I couldn't easily find the reason, but it shouldn't be used (or with care) as it is now.

The utf8_branch.h version, while using the same tables, works flawless in my tests.

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.