GNU bug report logs - #38287
26.3.50; filenotify.el: the Chinese file name in the event is messy code

Previous Next

Package: emacs;

Reported by: HaiJun Zhang <netjune <at> outlook.com>

Date: Wed, 20 Nov 2019 03:51:01 UTC

Severity: normal

Tags: patch

Found in version 26.3.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: HaiJun Zhang <netjune <at> outlook.com>
To: Michael Albinus <michael.albinus <at> gmx.de>, Eli Zaretskii <eliz <at> gnu.org>
Cc: "38287 <at> debbugs.gnu.org" <38287 <at> debbugs.gnu.org>
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
[Message part 1 (text/plain, inline)]
在 2019年11月21日 +0800 AM2:24,Eli Zaretskii <eliz <at> 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.

[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.