Skip to content

Unable to stat files with UTF characters #28

@DanielThomas

Description

@DanielThomas

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions