Use UTF-8 command line on windows

This commit is contained in:
Ginger Bill
2017-06-24 11:42:49 +01:00
parent 6cbb6bef0b
commit bba088bee7
7 changed files with 163 additions and 43 deletions

View File

@@ -4664,8 +4664,10 @@ void parse_file(Parser *p, AstFile *f) {
ParseFileError parse_files(Parser *p, char *init_filename) {
char *fullpath_str = gb_path_get_full_name(heap_allocator(), init_filename);
ParseFileError parse_files(Parser *p, String init_filename) {
GB_ASSERT(init_filename.text[init_filename.len] == 0);
char *fullpath_str = gb_path_get_full_name(heap_allocator(), cast(char *)&init_filename[0]);
String init_fullpath = make_string_c(fullpath_str);
TokenPos init_pos = {};
ImportedFile init_imported_file = {init_fullpath, init_fullpath, init_pos};