Fix FDirectoryWatchRequestLinux::ProcessChanges() to handle UTF8 filenames

ANSI_TO_TCHAR should be UTF8_TO_TCHAR for event name

#fyi Brandon.Schaefer
#jira UE-50360
#rb none

[CL 17452991 by Michael Sartain in ue5-main branch]
This commit is contained in:
Michael Sartain
2021-09-07 22:22:26 -04:00
parent 23759344ed
commit 018eaaa1f3

View File

@@ -264,7 +264,7 @@ void FDirectoryWatchRequestLinux::ProcessChanges()
if (EventPathPtr)
{
FString EventPath = *EventPathPtr; // get a copy since we can mutate WatchDescriptorToPaths
FString AffectedFile = EventPath / ANSI_TO_TCHAR(Event->name); // by default, some events report about the file itself
FString AffectedFile = EventPath / UTF8_TO_TCHAR(Event->name); // by default, some events report about the file itself
if ((Event->mask & IN_CREATE) || (Event->mask & IN_MOVED_TO))
{