all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "YUSUF ALPER ÇIKIŞIR" <yusufcikisir@std.iyte.edu.tr>
Cc: 59715@debbugs.gnu.org
Subject: bug#59715: 28.2; Emacs crashes after ``turkish-case-conversion-enable''
Date: Mon, 05 Dec 2022 15:23:18 +0200	[thread overview]
Message-ID: <83pmcy7znd.fsf@gnu.org> (raw)
In-Reply-To: <87a642eg6b.fsf@std.iyte.edu.tr> (yusufcikisir@std.iyte.edu.tr)

> From: YUSUF ALPER ÇIKIŞIR
>  <yusufcikisir@std.iyte.edu.tr>
> Cc: 59715@debbugs.gnu.org
> Date: Mon, 05 Dec 2022 05:29:48 +0300
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Would you like to try that?  If so, I can help you write that code snippet.
> 
> If that's going to help you to debug this, sure.  But since my problem
> is somehow solved, I don't want to take your time anymore.

This is not a waste: I think it's important to know which calls to
'downcase' cause problems with these characters, whose case-conversions in
Turkish are special.  Armed with that knowledge, we may be able to find an
efficient and relatively simple solution.

So please make the following change in Emacs, and run it (with your original
font, where Iosevka is used and causes problems), with a breakpoint in the
source line I mark below with "<<<" (please figure out its line number when
you edit the source code in casefiddle.c):

diff --git a/src/casefiddle.c b/src/casefiddle.c
index e8ae2e2..6a8609a 100644
--- a/src/casefiddle.c
+++ b/src/casefiddle.c
@@ -388,6 +388,9 @@ DEFUN ("downcase", Fdowncase, Sdowncase, 1, 1, 0,
 The argument object is not altered--the value is a copy.  */)
   (Lisp_Object obj)
 {
+  if (STRINGP (obj)
+      && strstr (SSDATA (obj), "Iosevka") != NULL)
+    fprintf (stderr, "Iosevka\n");  <<<<<<<<<<<<<<<<<<<<<<<
   return casify_object (CASE_DOWN, obj);
 }
 
When this breakpoint will break, please type "bt" and post the backtrace
here.  It is possible that the breakpoint will break more than once; please
post the results of "bt" for each one of those, until the crash.

A reminder: to set a breakpoint, type:

  (gdb) break casefiddle.c:NNNN

where NNNN is the line number of the fprintf line added above.

Thanks.





  reply	other threads:[~2022-12-05 13:23 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30  3:10 bug#59715: 28.2; Emacs crashes after ``turkish-case-conversion-enable'' YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-30 16:12 ` Eli Zaretskii
2022-12-01  2:11   ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-01  7:26     ` Eli Zaretskii
2022-12-01 22:26       ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-02  7:23         ` Eli Zaretskii
2022-12-03 22:09         ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04  7:16           ` Eli Zaretskii
2022-12-04  8:29             ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04  8:33             ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 10:20               ` Eli Zaretskii
2022-12-04 11:44                 ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 12:09                   ` Eli Zaretskii
2022-12-04 12:17                     ` Eli Zaretskii
2022-12-04 12:46                     ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 12:56                       ` Eli Zaretskii
2022-12-04 13:10                         ` Eli Zaretskii
2022-12-04 13:21                         ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 13:39                           ` Eli Zaretskii
2022-12-04 13:56                             ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 17:38                               ` Eli Zaretskii
2022-12-05  2:29                                 ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-05 13:23                                   ` Eli Zaretskii [this message]
2022-12-06 16:09                                     ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-06 16:20                                       ` Eli Zaretskii
2022-12-01  2:23   ` YUSUF ALPER ÇIKIŞIR via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83pmcy7znd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=59715@debbugs.gnu.org \
    --cc=yusufcikisir@std.iyte.edu.tr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.