GNU bug report logs - #27965
25.2; \cj does not match some Japanese characters

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Sat, 5 Aug 2017 08:42:02 UTC

Severity: normal

Found in version 25.2

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27965 in the body.
You can then email your comments to 27965 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#27965; Package emacs. (Sat, 05 Aug 2017 08:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ynyaaa <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 05 Aug 2017 08:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ynyaaa <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; \cj does not match some Japanese characters
Date: Sat, 05 Aug 2017 17:40:55 +0900
(string-match "\\cj"
              (mapconcat (lambda (l) (string (apply #'make-char
                                                    'japanese-jisx0213.2004-1
                                                    l)))
                         '((46 33) (47 126) (79 84) (79 126)
                           (116 39) (126 122) (126 123) (126 124))
                         ""))
=> nil

These characters belong to 'japanese-jisx0213.2004-1,
but does not belong to 'japanese-jisx0213-1.



In GNU Emacs 25.2.1 (i686-w64-mingw32)
 of 2017-04-25 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.0.6002
Configured using:
 'configure --host=i686-w64-mingw32 --without-dbus
 --without-compress-install 'CFLAGS=-static -O2 -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: JPN
  locale-coding-system: cp932

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:

Load-path shadows:
None found.

Features:
(network-stream nsm starttls tls gnutls mailalias smtpmail auth-source
cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core
cl-macs gv pp shadow sort mail-extr emacsbug message dired format-spec
rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr
mail-utils mule-diag help-mode easymenu cl-loaddefs pcase cl-lib
time-date mule-util japan-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table
w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote w32notify w32 multi-tty
make-network-process emacs)

Memory information:
((conses 8 209319 82842)
 (symbols 32 70470 3)
 (miscs 32 77 243)
 (strings 16 69689 11266)
 (string-bytes 1 1394714)
 (vectors 8 15896)
 (vector-slots 4 621371 13004)
 (floats 8 195 443)
 (intervals 28 51716 2075)
 (buffers 520 23))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27965; Package emacs. (Sat, 05 Aug 2017 09:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 27965 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: ynyaaa <at> gmail.com
Cc: 27965 <at> debbugs.gnu.org
Subject: Re: bug#27965: 25.2; \cj does not match some Japanese characters
Date: Sat, 05 Aug 2017 12:36:27 +0300
> From: ynyaaa <at> gmail.com
> Date: Sat, 05 Aug 2017 17:40:55 +0900
> 
> 
> (string-match "\\cj"
>               (mapconcat (lambda (l) (string (apply #'make-char
>                                                     'japanese-jisx0213.2004-1
>                                                     l)))
>                          '((46 33) (47 126) (79 84) (79 126)
>                            (116 39) (126 122) (126 123) (126 124))
>                          ""))
> => nil

It returns nil in Emacs 25.2, but 0 in the current master.  Does that
mean the problem is fixed in the current sources?

> These characters belong to 'japanese-jisx0213.2004-1,
> but does not belong to 'japanese-jisx0213-1.

I don't understand how it's related to the issue at hand.  If you
could tell a bit more about this, including reference to the portions
of Emacs sources (probably characters.el) and how they should be
examined for correctness, we could try and make sure there are no more
errors there.  I don't speak Japanese and don't know enough about the
various japanese charsets to see what, if anything, is in error.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27965; Package emacs. (Sat, 05 Aug 2017 10:15:01 GMT) Full text and rfc822 format available.

Message #11 received at 27965 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: ynyaaa <at> gmail.com, 27965 <at> debbugs.gnu.org
Subject: Re: bug#27965: 25.2; \cj does not match some Japanese characters
Date: Sat, 05 Aug 2017 12:14:11 +0200
On Aug 05 2017, Eli Zaretskii <eliz <at> gnu.org> wrote:

>> From: ynyaaa <at> gmail.com
>> Date: Sat, 05 Aug 2017 17:40:55 +0900
>> 
>> 
>> (string-match "\\cj"
>>               (mapconcat (lambda (l) (string (apply #'make-char
>>                                                     'japanese-jisx0213.2004-1
>>                                                     l)))
>>                          '((46 33) (47 126) (79 84) (79 126)
>>                            (116 39) (126 122) (126 123) (126 124))
>>                          ""))
>> => nil
>
> It returns nil in Emacs 25.2, but 0 in the current master.  Does that
> mean the problem is fixed in the current sources?

Most likely by commit 096d134765.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27965; Package emacs. (Sat, 05 Aug 2017 11:30:02 GMT) Full text and rfc822 format available.

Message #14 received at 27965 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: ynyaaa <at> gmail.com, 27965 <at> debbugs.gnu.org
Subject: Re: bug#27965: 25.2; \cj does not match some Japanese characters
Date: Sat, 05 Aug 2017 14:29:40 +0300
> From: Andreas Schwab <schwab <at> linux-m68k.org>
> Cc: ynyaaa <at> gmail.com,  27965 <at> debbugs.gnu.org
> Date: Sat, 05 Aug 2017 12:14:11 +0200
> 
> On Aug 05 2017, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
> >> From: ynyaaa <at> gmail.com
> >> Date: Sat, 05 Aug 2017 17:40:55 +0900
> >> 
> >> 
> >> (string-match "\\cj"
> >>               (mapconcat (lambda (l) (string (apply #'make-char
> >>                                                     'japanese-jisx0213.2004-1
> >>                                                     l)))
> >>                          '((46 33) (47 126) (79 84) (79 126)
> >>                            (116 39) (126 122) (126 123) (126 124))
> >>                          ""))
> >> => nil
> >
> > It returns nil in Emacs 25.2, but 0 in the current master.  Does that
> > mean the problem is fixed in the current sources?
> 
> Most likely by commit 096d134765.

Probably.




bug marked as fixed in version 26.1, send any further explanations to 27965 <at> debbugs.gnu.org and ynyaaa <at> gmail.com Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 11 Sep 2018 01:38:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Oct 2018 11:24:06 GMT) Full text and rfc822 format available.

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

Previous Next


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