Skip to content

[Bug] Pasting clipboard text into Files saves escaped Unicode sequences instead of box-drawing characters #1623

@iamkartiknayak

Description

@iamkartiknayak

Issue/Description:
When pasting structured text (such as a directory tree using box-drawing characters) directly into Files from the clipboard, certain characters are incorrectly saved as escaped Unicode sequences (e.g. \u2502, \u2514\u2500\u2500\u2500) instead of the original box-drawing characters.

For example, copying and pasting:

project_root
│ README.md

└───some_folder

Results in the saved content containing:

project_root
\u2502 README.md
\u2502
\u2514\u2500\u2500\u2500some_folder

Version:

 cosmic-files:
  Installed: 1.0.6~1770746763~24.04~d668d04

Steps to Reproduce:

  • Copy a directory tree structure containing box-drawing characters (e.g. │ └ ─).
  • Open COSMIC Files.
  • Paste the content directly (Pasted text).
  • Open the file and observe the escaped Unicode sequences.

Expected Behavior:
Unicode characters such as box-drawing characters should be preserved as-is in UTF-8 format. The saved file should contain the original characters, not escaped \uXXXX sequences.

Other Notes:

Text pasted into Editor vs Text pasted into Files

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions