Skip to content

LuaJIT patch to add UTF-8 support on Windows.

Notifications You must be signed in to change notification settings

pragtical/luajit-unicode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

LuaJIT Unicode for Windows

This is an adaptation of https://github.com/Lekensteyn/lua-unicode to work under LuaJIT and for the purpose of Pragtical Code Editor.

Changes

  1. Copy src/utf8_wrappers.h and src/utf8_wrappers.c to LuaJIT src dir.
  2. Patch src/luaconf.h to add the following in the Local configuration part:
#if defined(LUA_LIB) && (defined(lib_aux_c) || defined(lib_io_c) || \
     defined(lib_package_c) || defined(lib_os_c))
#include "utf8_wrappers.h"
#endif
  1. Patch src/Makefile to compile src/utf8_wrappers.c:
-	 lib_buffer.o
+	 lib_buffer.o utf8_wrappers.o

About

LuaJIT patch to add UTF-8 support on Windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%