shaka-packager/packager/file
Joey Parrish 5a2571b9bc
fix: Fix local files with UTF8 names (#1246)
This fixes our use of std::filesystem to interpret all paths names as
UTF8. Before this, UTF8 paths did not work correctly in all cases.

This also adds a new unit test to cover this case.

On Windows, it is critical that a UTF8 locale be set at runtime.
Applications linking with Packager as a library should call setlocale(),
and the Packager frontends now do this automatically after converting
wide character arguments into narrow strings.

Closes #652
2023-07-18 11:59:21 -07:00
..
public chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
CMakeLists.txt ci: Collect and report test results (#1244) 2023-07-17 16:11:41 -07:00
callback_file.cc fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
callback_file.h fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
callback_file_unittest.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
file.cc fix: Fix local files with UTF8 names (#1246) 2023-07-18 11:59:21 -07:00
file.h fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
file_closer.h chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
file_test_util.cc fix: Fix local files with UTF8 names (#1246) 2023-07-18 11:59:21 -07:00
file_test_util.h feat: port media/event to CMake (#1222) 2023-07-13 16:25:42 -07:00
file_unittest.cc fix: Fix local files with UTF8 names (#1246) 2023-07-18 11:59:21 -07:00
file_util.cc fix: Fix local files with UTF8 names (#1246) 2023-07-18 11:59:21 -07:00
file_util.h chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
file_util_unittest.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
http_file.cc fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
http_file.h fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
http_file_unittest.cc fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
io_cache.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
io_cache.h fix: Fix compilation on Arch Linux (#1233) 2023-07-14 12:40:12 -07:00
io_cache_unittest.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
local_file.cc fix: Fix local files with UTF8 names (#1246) 2023-07-18 11:59:21 -07:00
local_file.h fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
memory_file.cc fix: Fix compilation on Arch Linux (#1233) 2023-07-14 12:40:12 -07:00
memory_file.h fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
memory_file_unittest.cc feat: First phase of CMake build system implementation (#1072) 2022-08-16 11:34:51 -07:00
thread_pool.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
thread_pool.h fix: Fix compilation on Arch Linux (#1233) 2023-07-14 12:40:12 -07:00
threaded_io_file.cc fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
threaded_io_file.h fix: Fix compilation on Arch Linux (#1233) 2023-07-14 12:40:12 -07:00
udp_file.cc fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
udp_file.h fix: Fix flush/close semantics for HTTP files, improve testing (#1232) 2023-07-13 18:55:48 -07:00
udp_options.cc feat: Replace arraysize with std::size (#1129) 2022-11-03 07:21:46 -07:00
udp_options.h chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
udp_options_unittest.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00