Giter Site home page Giter Site logo

luawinfile's Introduction

Support UTF-8 filename in Windows

This lua library is for windows (mingw) only . It's similar to lfs but support utf-8 filename.

  • lfs.dir ==> winfile.dir
  • lfs.currentdir ==> winfile.currentdir
  • lfs.chdir ==> winfile.chdir
  • lfs.touch ==> winfile.touch
  • lfs.mkdir ==> winfile.mkdir
  • lfs.rmdir ==> winfile.rmdir
  • lfs.attributes ==> winfile.attributes
  • os.remove ==> winfile.remove
  • os.rename ==> winfile.rename
  • os.execute ==> winfile.execute
  • os.getenv ==> winfile.getenv
  • loadfile ==> winfile.loadfile
  • dofile ==> winfile.dofile
  • io.open ==> winfile.open
  • io.popen ==> winfile.popen
  • winfile.shortname : Get the shorname of the path.
  • winfile.personaldir : Get My Document dir.

luawinfile's People

Contributors

cloudwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luawinfile's Issues

Is it possible to backport to support Lua 5.1?

The project I code for, the Mudlet MUD client, provides a lua sub-system for our users to extend it's functionality. We are working towards getting it properly I18n-ised and we are embracing Unicode by using the UTF-8 encoding to support it. However for one platform (Windows) the file handling for non-ASCII characters in file names is really borked not working with file and path names containing such characters.

I think luawinfile will enable us to properly sort it out but we are tied for the foreseeable future to lua 5.1 though I see in the makefile that you want to compile luawinfile against 5.3 - is this a hard requirement or can it work with the older minor version?

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.