+org/toggle-fold would break CJK Font presentation.
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 시험하다
System information
https://pastebin.com/0kCGbn0s
Does this happen when you toggle folds with org-cycle (on TAB)?
Does this happen when you toggle folds with
org-cycle(onTAB)?
Yes. Happened when toggling headings or props.
Yes. Happened when toggling headings or props.
In that case, this seems like an upstream issue and should be reported to org.
I would test it via emacs -Q and create an issue to a certain upstream repo if possible.
A quick way to test it in vanilla Emacs is:
M-x doom/sandbox- Insert this into the sandbox buffer:
(require 'org) - Type
C-c C-cto launch the sandbox (vanilla Emacs), M-x find-fileand open the example file containing Chinese characters,- Use
TAB(orM-x org-cycle) to try and reproduce the issue.
I am currently unable to reproduce it with vanilla Emacs or vanilla Doom.
sandbox is really helpful while I never knew that before. I could still reproduce the CJK issue.
Hi @hlissner , did you test it on MacOS or other systems? Currently, I only have access to MacOS