Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Unicode filenames within a unit test on the mac ?

$
0
0

I have this really puzzling project that runs both in maven and intellij on linux, but once I move to the mac the unit test simply fails when I run it with the intellij test runner.

 

The project can be seen at https://github.com/krosenvold/utf8repository.git, and contains simply one unit test and two different files with unicode characters in the filename, the unicode files are checked into git.

 

When I run this on the CLI I get

 

00000000 63 72 65 61 74 65 64 4F 6E 4D 61 63 2F 61 62 63 createdOnMac/abc

00000010 C3 B8                                           ..

00000000 63 72 65 61 74 65 64 4F 6E 4C 69 6E 75 78 2F 74 createdOnLinux/t

00000010 65 73 74 C3 B8                                  est..

 

which is totally correct according to my understanding. Inside the JUnit test runner in Idea I get:

 

00000000 63 72 65 61 74 65 64 4F 6E 4D 61 63 2F 61 62 63 createdOnMac/abc

00000010 EF BF BD EF BF BD                               ......

00000000 63 72 65 61 74 65 64 4F 6E 4C 69 6E 75 78 2F 74 createdOnLinux/t

00000010 65 73 74 EF BF BD EF BF BD                      est......

 

The project contains a test that fails inside idea but not outside. This is simply the biggest WTF I have seen in quite some time.

I understand there's something about unicode normalization, but this does not really seem to be the case here....

 

It seems to happen on 11,12 and 13.

 

What is going on here ?

 

Kristian


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>