Code Monkey home page Code Monkey logo

Comments (5)

SethMMorton avatar SethMMorton commented on August 13, 2024

I cannot reproduce. I'm not even sure how an OSError could be thrown here. I wonder if it is something OS-specific.

Can you do the following and let me know what happens?

$ python3.9 -c "import unicodedata; print(unicodedata.numeric('Å'))"

from natsort.

yurivict avatar yurivict commented on August 13, 2024
$ python3.9 -c "import unicodedata; print(unicodedata.numeric('Å'))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: not a numeric character

from natsort.

SethMMorton avatar SethMMorton commented on August 13, 2024

Bummer - that's what I get too. Not an OSError. I'm going to see if I can add BSD to my CI jobs and hopefully that exposes something.

from natsort.

SethMMorton avatar SethMMorton commented on August 13, 2024

Oh my goodness... I can replicate: https://github.com/SethMMorton/natsort/actions/runs/4300958649/jobs/7497664518

I'll solve this tomorrow.

BUT, based on which tests are failing this clearly has something to do with the locale library, which is interesting because I did not touch that in the last update.

from natsort.

SethMMorton avatar SethMMorton commented on August 13, 2024

I can trace this to locale.strxfrm. https://github.com/SethMMorton/natsort/actions/runs/4310592727/jobs/7519180370#step:3:1715

It fails with an OSError when given 'Å'. This is not the first time I have encountered a mind-boggling bug with locale on FreeBSD - sigh. I guess I'll have to add more code to natsort to work around bugs in the locale library with BSD.

from natsort.

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.