gradle / gradle/native-platform

Unable to stat files with UTF characters

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
126
Forks
44
Avg merge
7h 44m
Merged PRs (30d)
9

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.