1 // SciTE - Scintilla based Text Editor
2 /** @file scite_lua_win.h
3  ** SciTE Lua scripting interface.
4  **/
5 // Copyright 2010 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
7 
8 #ifndef SCITE_LUA_WIN_H
9 #define SCITE_LUA_WIN_H
10 
11 /* Modifications for Windows to allow UTF-8 file names and command lines */
12 /*
13 Imported into Lua build with -DLUA_USER_H=\"scite_lua_win.h\"
14 Redirect fopen and _popen to functions that treat their arguments as UTF-8.
15 If UTF-8 does not work then retry with the original strings as may be in locale characters.
16 */
17 #if defined(LUA_USE_WINDOWS)
18 #include <stdio.h>
19 FILE *scite_lua_fopen(const char *filename, const char *mode);
20 #define fopen scite_lua_fopen
21 FILE *scite_lua_popen(const char *filename, const char *mode);
22 #define _popen scite_lua_popen
23 #endif
24 
25 #endif
26