bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38287: 26.3.50; filenotify.el: the Chinese file name in the event is


From: HaiJun Zhang
Subject: bug#38287: 26.3.50; filenotify.el: the Chinese file name in the event is messy code
Date: Thu, 21 Nov 2019 00:35:14 +0000

在 2019年11月21日 +0800 AM2:24,Eli Zaretskii <eliz@gnu.org>,写道:
Btw, I don't think I understand the nature of the problem yet: where
were the unibyte strings shown in the report printed? Did some Emacs
code print them, and if so, where is that code? 

It’s my fault. I didn’t describe the problem clearly. I have added some debug messages to notify.el.
Auto-revert doesn’t work for many files on my machine, so I want to find the cause and added the debug messages. Finally I find that it is because the messy code. 

The scenario:
  1. Low level file event comes, there is a file name in the event which has messy code int it.
  2. In file notify.el, it receives the event, extracts the file name in the event and compares it with the one it has stored when adding the watch. The extracted on is messy code, and the stored one is good string. They are not equal. So the event is discarded.
  3. Then no auto-revert for the file forever.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]