unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] array index bug in 'hangul.el'
@ 2008-08-10  6:02 Jihyun Cho
  2008-08-10 11:53 ` Juanma Barranquero
  2008-08-10 23:59 ` Kenichi Handa
  0 siblings, 2 replies; 11+ messages in thread
From: Jihyun Cho @ 2008-08-10  6:02 UTC (permalink / raw)
  To: emacs-devel Mailinglist

[-- Attachment #1: Type: text/plain, Size: 124 bytes --]

An out of range error occurs in 'hangul3-input-method-jong' function.
It's my mistake.
This patch adjust an index of array.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: hangul-array-index-bug.diff --]
[-- Type: text/x-diff; name=hangul-array-index-bug.diff, Size: 1205 bytes --]

? hangul-array-patch.diff
Index: emacs/leim/quail/hangul.el
===================================================================
RCS file: /sources/emacs/emacs/leim/quail/hangul.el,v
retrieving revision 1.23
diff -u -8 -p -r1.23 hangul.el
--- emacs/leim/quail/hangul.el	7 Jun 2008 12:42:33 -0000	1.23
+++ emacs/leim/quail/hangul.el	10 Aug 2008 05:11:37 -0000
@@ -328,17 +328,17 @@ Other parts are the same as a `hangul3-i
                         'jung
                         (aref hangul-queue 2)
                         (aref hangul-queue 3)))
                     (+ (aref hangul-queue 4)
                        (hangul-djamo
                         'jong
                         (aref hangul-queue 4)
                         char)))))
-             (aset hangul-queue 6 char)))
+             (aset hangul-queue 5 char)))
       (hangul-insert-character hangul-queue)
     (if (zerop (apply '+ (append hangul-queue nil)))
 	(hangul-insert-character (setq hangul-queue (vector 0 0 0 0 char 0)))
       (hangul-insert-character hangul-queue
 			       (setq hangul-queue (vector 0 0 0 0 char 0))))))
 
 (defun hangul-delete-backward-char ()
   "Delete the previous hangul character by Jaso units."

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-08-11 18:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-10  6:02 [PATCH] array index bug in 'hangul.el' Jihyun Cho
2008-08-10 11:53 ` Juanma Barranquero
2008-08-11  0:29   ` Jihyun Cho
2008-08-11  0:31     ` Juanma Barranquero
2008-08-11  1:15       ` Jihyun Cho
2008-08-11  9:13         ` Thien-Thi Nguyen
2008-08-11 15:11           ` Jihyun Cho
2008-08-11 15:22             ` Lennart Borgman (gmail)
2008-08-11 18:08               ` Thien-Thi Nguyen
2008-08-11  0:55     ` Kenichi Handa
2008-08-10 23:59 ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).