Don't rely on CFLocaleGetIdentifier(), whose result may not be sensible to the C library.
Attach a file by drag & drop or click to upload