t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Korean file and folder names stored in NFD render as decomposed jamo

Open mochafreddo opened this issue 1 week ago • 0 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

Not sure

Steps to reproduce

  1. On macOS, create a folder whose Korean name is stored in NFD (decomposed jamo). Finder and browser or mail downloads often produce such names; to make one deterministically: mkdir "$(python3 -c "import unicodedata as u; print(u.normalize('NFD', '시안'))")"
  2. In a T3 Code thread, reference that folder as a file link (for example by mentioning it in the composer).
  3. Look at how the folder name is shown.

Expected behavior

The name is shown as composed syllables (시안), as Finder and the terminal show it. NFC-normalizing the name for display, while keeping the original bytes for opening the path, would match them.

Actual behavior

The name is shown with its jamo decomposed, as separate consonants and vowels, instead of the two syllables. The link destination carries the decomposed form: %E1%84%89%E1%85%B5%E1%84%8B%E1%85%A1%E1%86%AB (U+1109 U+1175 U+110B U+1161 U+11AB), where the NFC name would be %EC%8B%9C%EC%95%88.

Renaming the folder to its NFC spelling makes it display correctly.

Impact

Cosmetic issue

Version or commit

T3 Code (Beta) 0.1.10

Environment

macOS 27.2.1, APFS

Workaround

Rename the file or folder to its NFC form (mv <NFD name> <NFC name> works on APFS).

Related

#16096 (non-ASCII relative file links not opening) is fixed and covers opening such links, not how the name is displayed.

mochafreddo avatar Nov 20 '26 08:11 mochafreddo