I made a tool a couple of months ago that helps to create a supply of really strangely named files and folders.

A video is better than a thousands words, so here goes:

replacer

This has been useful for my work for Adobe on a file sync program. It has to be able to sync arbitrary file names on both Mac and Win. We need to make sure it works with all these characters, as in the past we’ve had problems occur during development for files containing characters that

  • are non-ASCII
  • are non-European
  • contain symbols
  • have long Unicode representations such as [supplementary plane characters] (https://en.wikipedia.org/wiki/Plane_(Unicode)#Supplementary_Multilingual_Plane)
  • have different normalisation forms in NFD, NFC, etc. such as characters with accents
  • and so on.

This tool currently creates folders and files with names containing all these types.

You can download it for Windows or Mac here.

The source is here.

You use it by downloading it (or building it by following the instructions at github) and then doing something like

1
./language-tool --path=~/tmp/weirdfiles 

Then it creates an infinite supply of really strange names. Every time you move or delete a file from ~/tmp/weirdfiles, it is replaced by another one from the same category. The start of the name tells you the category of weird characters it uses.

E.g. the file Arabic_ۺﲳﵫ𞸊ﶎ𐹲ݔﮏٝ𞹰.txt is a text file whose name contains random Arabic characters.

I envisage that some people will want to have it running all the time, and use it whenever they need a test file/folder. Just cut and paste, or drag it somewhere.

It is likely to be useful for testing sync programs, virtual file systems, file browsers and any program with a file picker in it!

Hope you like it.

Pull requests for changes are welcome.