PATH: glob-locale-test/

Glob (before locale)

Try globing with the default locale. All runs smoth

Array
(
)

Set the locale to en_US.UTF-8...

Glob (after locale)

Now that the locale was set, glob becomes somewhat dum. It only prints files with non-utf8 names.

Array
(
)

DirectoryIterator