native-platform icon indicating copy to clipboard operation
native-platform copied to clipboard

Unable to stat files with UTF characters

Open DanielThomas opened this issue 7 years ago • 0 comments

We ran into a project with a file with an emoji filename (no really), and looks like stat chokes:

Caused by: net.rubygrapefruit.platform.NativeException: Could not get UNIX mode on /mnt/builds/slave/workspace/project/src/node_modules/.bin/🐹: file does not exist.
	at net.rubygrapefruit.platform.internal.DefaultPosixFiles.getMode(DefaultPosixFiles.java:68)
	at org.gradle.internal.nativeintegration.filesystem.services.NativePlatformBackedStat.getUnixMode(NativePlatformBackedStat.java:34)
	at org.gradle.internal.nativeintegration.filesystem.services.GenericFileSystem.getUnixMode(GenericFileSystem.java:74)
	... 83 more

I'd guess if this affects emojis, it might affect any file UTF-8 characters?

DanielThomas avatar Apr 12 '18 19:04 DanielThomas