From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38287: 26.3.50; filenotify.el: the Chinese file name in the event is messy code Date: Thu, 21 Nov 2019 16:42:41 +0200 Message-ID: <83tv6xxpcu.fsf@gnu.org> References: <87y2wa7bl3.fsf@gmx.de> <83pnhmzc16.fsf@gnu.org> <875zje780h.fsf@gmx.de> <83imnez9q9.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="56134"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38287-done@debbugs.gnu.org, michael.albinus@gmx.de To: HaiJun Zhang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 21 15:43:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXng6-000ESY-IP for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2019 15:43:26 +0100 Original-Received: from localhost ([::1]:41490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXng5-0007B2-Bs for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2019 09:43:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42787) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXnfj-0007AE-K0 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 09:43:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXnfi-0006vG-MT for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 09:43:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXnfi-0006v6-8c for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 09:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXnfi-00016B-58 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 09:43:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Nov 2019 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 38287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 38287@debbugs.gnu.org, eliz@gnu.org, netjune@outlook.com Original-Received: via spool by 38287-done@debbugs.gnu.org id=D38287.15743473594190 (code D ref 38287); Thu, 21 Nov 2019 14:43:01 +0000 Original-Received: (at 38287-done) by debbugs.gnu.org; 21 Nov 2019 14:42:39 +0000 Original-Received: from localhost ([127.0.0.1]:51692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXnfL-00015V-77 for submit@debbugs.gnu.org; Thu, 21 Nov 2019 09:42:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXnfJ-00015I-G5 for 38287-done@debbugs.gnu.org; Thu, 21 Nov 2019 09:42:37 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iXnfC-0006iw-KM; Thu, 21 Nov 2019 09:42:31 -0500 Original-Received: from [176.228.60.248] (port=4543 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iXnfB-0007Sv-W4; Thu, 21 Nov 2019 09:42:30 -0500 In-reply-to: (message from HaiJun Zhang on Thu, 21 Nov 2019 02:33:42 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172134 Archived-At: > From: HaiJun Zhang > CC: "38287@debbugs.gnu.org" <38287@debbugs.gnu.org> > Date: Thu, 21 Nov 2019 02:33:42 +0000 > > It is fixed by your patch. Thanks. Thanks, I installed it. > I print the value of file and encoded_file with safe_debug_print in kqueue.c. The former is normal string. The > latter is messy code. What is the encoding of encoded_file? The value of file-name-coding-system is > utf-8-hfs. How much does utf-8-hfs diff with utf-8-unix? Is utf-8-hfs not really utf-8? encoded_file is in UTF-8 on your system. What you perceive as "messy code" is how Emacs displays unibyte strings, which are actually sequences of raw bytes, not of characters. utf-8 and utf-8-hfs are not exactly the same, but for Chinese characters they produce the same results, because those characters don't have decompositions.