Giter VIP home page Giter VIP logo

Comments (5)

robotboy655 avatar robotboy655 commented on September 28, 2024 1

They cannot be physically written to the disk because they contain illegal characters, that's why that warning was added.

from gmad.

robotboy655 avatar robotboy655 commented on September 28, 2024 1

57d9d68

This should be a much better approach that addresses both criticisms.

from gmad.

Cynosphere avatar Cynosphere commented on September 28, 2024

A lot of unicode that can be written, such as japanese character sets and emojis are getting blanketed by this though.

from gmad.

Cynosphere avatar Cynosphere commented on September 28, 2024

Also why not just make the file become renamed so the file isn't lost either?

from gmad.

s5bug avatar s5bug commented on September 28, 2024

https://en.wikipedia.org/wiki/Filename#Comparison_of_filename_limitations

See NTFS and most UNIX file systems. The problem comes when UTF-16 encoding drops a byte less than 0x20 due to a non-UTF-8 character.

In fact, your code wouldn't catch an error like Wikipedia describes for a file named AUX.txt on an NTFS/Windows system.

from gmad.

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.