HyukjinKwon commented on code in PR #48722:
URL: https://github.com/apache/arrow/pull/48722#discussion_r2663389504
##########
cpp/src/arrow/io/file_test.cc:
##########
@@ -115,7 +115,25 @@ TEST_F(TestFileOutputStream,
FileNameWideCharConversionRangeException) {
ASSERT_RAISES(Invalid, ReadableFile::Open(file_name));
}
-// TODO add a test with a valid utf-8 filename
+TEST_F(TestFileOutputStream, FileNameValidUtf8) {
+ // Test that file operations work with valid UTF-8 filenames.
+ // On Windows, PlatformFilename::FromString() converts UTF-8 strings to wide
strings.
+ // On Unix, filenames are treated as opaque byte strings.
+ std::string utf8_file_name = "test_file_한국어_😀.txt";
Review Comment:
`한국어` is "Korean" in Korean FYI .. :-)..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]