Non-English filename disappears after coppying.
from butter_fly@lemmy.ml to linux@lemmy.ml on 25 Dec 2024 17:53
https://lemmy.ml/post/24017679

Did this happend to anyone else?

#linux

threaded - newest

n2burns@lemmy.ca on 25 Dec 2024 18:01 next collapse

Is that a limitation of the destination filesystem?

LodeMike@lemmy.today on 25 Dec 2024 20:04 collapse

There’s an Arabic name in the bottom right. Likely the software getting confused.

bdonvr@thelemmy.club on 25 Dec 2024 20:55 collapse

The filename ending left to right despite the file being right to left is kinda funny

LodeMike@lemmy.today on 25 Dec 2024 20:57 collapse

That’s exactly how it’s supposed to be handled.

synae@lemmy.sdf.org on 25 Dec 2024 22:22 collapse

It’s been a long time since I’ve had to deal with text rendering, so forgive me if this question is silly or uses wrong terminology:

Are the unicode LTR/RTL markers part of the filename or is the display layer supposed to figure it out by the codepoints used?

LodeMike@lemmy.today on 26 Dec 2024 00:10 collapse

Correct

bjoern_tantau@swg-empire.de on 25 Dec 2024 18:01 next collapse

Maybe the target filesystem doesn’t support those filenames. I think I saw that either with NTFS or SAMBA. Really annoying.

dragnucs@lemmy.ml on 25 Dec 2024 18:12 next collapse

Never noticed that? How do you copy them, from terminal? What software do you use? What file system do you use?

butter_fly@lemmy.ml on 25 Dec 2024 18:40 collapse

nautilus, ext4

dragnucs@lemmy.ml on 25 Dec 2024 19:14 next collapse

I cannot reproduce it, I just tried to copy some files with various methods but they always end up correctly named. The only difference is that I have Btrfs. I never encountered this issue when I was using ext4 though.

Limitless_screaming@kbin.earth on 25 Dec 2024 20:30 collapse

Can't reproduce it on ext4, KDE Plasma too.

Zikeji@programming.dev on 25 Dec 2024 19:44 collapse

Are you copying it to a locally mounted ext4 or is it a network share of an ext4 drive, and if so - what type of network share?

riskable@programming.dev on 25 Dec 2024 18:53 next collapse

Could be a bug in Nautilus though it’s so mature now that would be strange. I’d report it to their repo (don’t have the link and I’m on my phone but it should be easy to find).

ext4 supports various filename encodings (simultaneously, even!) but sometimes when you copy a file from one destination to another in a batch with mixed encodings you can end up with situations like this. Especially from within a GUI.

Does the probablem occur when you copy each file one by one or only in batch?

butter_fly@lemmy.ml on 26 Dec 2024 15:39 collapse

This happened when copying in batch.

ik5pvx@lemmy.world on 25 Dec 2024 18:56 next collapse

Can you check in a terminal? If you can see them in the terminal and not in the desktop you’re missing a font. If you can’t see them in the terminal then you’ve somehow mangled them. What was the OS and filesystems you copied from?

bdonvr@thelemmy.club on 25 Dec 2024 20:56 collapse

Unless the font if the terminal has the same issue

[deleted] on 25 Dec 2024 22:41 collapse

.

penquin@lemm.ee on 25 Dec 2024 22:26 next collapse

Are the missing ones Arabic, too? If so, there is a “noto sans Arabic” font and other symbol fonts that you’ll need to have installed. That’s really weird, though. I have Arabic everywhere and I don’t have this issue. Did you uninstall any fonts by any chance?

butter_fly@lemmy.ml on 26 Dec 2024 15:34 collapse

Yes, those are Arabic, but Chinese, Japanese and Bangla are also affected. And I have the fonts installed.

penquin@lemm.ee on 26 Dec 2024 16:19 collapse

I’d try reinstalling the plasma workspace and see if that fixes it. Or even the whole desktop.
For some reason, I assumed you have plasma installed

blobjim@hexbear.net on 27 Dec 2024 05:52 collapse

Could it be this bug?: phoronix.com/…/Linux-Reverts-Special-Char-Uni