Uploading or viewing fails if file name contains special characters


On Linux, Brave seems unable to open files that contain any special characters in the filename. Note that the characters are valid as part of a file name in the operating system.

How can this issue be reproduced?

  1. Create a text file (e.g. on the Desktop) called “äöüÄÖÜ.txt”, open it in a text editor and add some content.
  2. Drag the file (e.g. from the Desktop) into the Brave window.
  3. Note that Brave DOES NOT display the contents of the text file, but instead shows a listing of the root directory
  4. Rename the file to “test.txt”
  5. Drag the file into the Brave window.
  6. Note that the contents are now displayed correctly

Expected result:
Handle those file correctly

Brave Version( check About Brave):
Brave 1.79.126 (official Build)(64-bit)
Chromium: 137.0.7151.119

Additional Information:
The distro is Nobara Linux 42, Kernel 6.15.3-201, KDE Plasma 6.3.5, KDE Frameworks 6.14.0

Same problem with uploading such files to any website. It works perfectly fine with Firefox.

I also reported this behavior in the Chromium issue tracker and got some help there. Essentially, it seems to be a quirk in Nobara Linux, and the issue can be resolved by adding LANG="C.UTF-8" to file /etc/locale.conf.