In order to fix #539, this pull request includes changes to improve the handling of Japanese characters in file names and adds a new test to verify the functionality. The most important changes include modifying the to_cname function to correctly handle multi-byte Japanese characters and adding a new test case for this functionality.
Improvements to Japanese character handling:
cobj/tree.c: Modified the to_cname function to correctly handle multi-byte Japanese characters by adjusting the loop to increment by two bytes for certain character ranges.
In order to fix #539, this pull request includes changes to improve the handling of Japanese characters in file names and adds a new test to verify the functionality. The most important changes include modifying the
to_cname
function to correctly handle multi-byte Japanese characters and adding a new test case for this functionality.Improvements to Japanese character handling:
cobj/tree.c
: Modified theto_cname
function to correctly handle multi-byte Japanese characters by adjusting the loop to increment by two bytes for certain character ranges.Additions to test coverage:
tests/misc.src/file-handler-japanese.at
: Added a new test case to verify that file names with Japanese characters are handled correctly.