doomemacs icon indicating copy to clipboard operation
doomemacs copied to clipboard

+org/toggle-fold would break CJK Font presentation.

Open PannenetsF opened this issue 3 months ago • 7 comments

I confirm that...

  • [x] I searched the issue tracker and found no similar issues.

  • [x] I searched the documentation, FAQ, discussion board, and Google for solutions to my issue.

  • [x] I read the debugging guide and researched the issue to the best of my ability.

  • [x] My issue can be observed on the latest available commit of Doom.

  • [x] My issue can be observed on a stable release of Emacs (i.e. doesn't end in .50, .60, or .90.99)

Describe your issue

I typed Chinese in a .org file. If I closed any fold (a heading, or the property), the Chinese font would be like \346\350. Only org-mode's fold led to this, while other code folds (python, cpp) would not. I checked the code-system is UTF-8.

Steps to reproduce

I re-produced with the default doomemacs config.

* test
** EN test
test CJK in org-mode
** CN 测试
** JP 試験する
** KR 시험하다
Image Image

System information

https://pastebin.com/0kCGbn0s

PannenetsF avatar Sep 05 '25 03:09 PannenetsF

Does this happen when you toggle folds with org-cycle (on TAB)?

hlissner avatar Sep 05 '25 18:09 hlissner

Does this happen when you toggle folds with org-cycle (on TAB)?

Yes. Happened when toggling headings or props.

PannenetsF avatar Sep 08 '25 09:09 PannenetsF

Yes. Happened when toggling headings or props.

In that case, this seems like an upstream issue and should be reported to org.

hlissner avatar Sep 14 '25 04:09 hlissner

I would test it via emacs -Q and create an issue to a certain upstream repo if possible.

PannenetsF avatar Sep 15 '25 07:09 PannenetsF

A quick way to test it in vanilla Emacs is:

  1. M-x doom/sandbox
  2. Insert this into the sandbox buffer:
    (require 'org)
    
  3. Type C-c C-c to launch the sandbox (vanilla Emacs),
  4. M-x find-file and open the example file containing Chinese characters,
  5. Use TAB (or M-x org-cycle) to try and reproduce the issue.

I am currently unable to reproduce it with vanilla Emacs or vanilla Doom.

hlissner avatar Sep 20 '25 18:09 hlissner

sandbox is really helpful while I never knew that before. I could still reproduce the CJK issue.

Image Image

PannenetsF avatar Sep 22 '25 05:09 PannenetsF

Hi @hlissner , did you test it on MacOS or other systems? Currently, I only have access to MacOS

PannenetsF avatar Sep 22 '25 05:09 PannenetsF