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

* Re: [PATCH] array index bug in 'hangul.el'
  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-10 23:59 ` Kenichi Handa
  1 sibling, 1 reply; 11+ messages in thread
From: Juanma Barranquero @ 2008-08-10 11:53 UTC (permalink / raw)
  To: Jihyun Cho; +Cc: emacs-devel Mailinglist

On Sun, Aug 10, 2008 at 08:02, Jihyun Cho <jihyun.jo@gmail.com> wrote:

> This patch adjust an index of array.

Could you please add a suitable ChangeLog entry?

   Juanma




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-10  6:02 [PATCH] array index bug in 'hangul.el' Jihyun Cho
  2008-08-10 11:53 ` Juanma Barranquero
@ 2008-08-10 23:59 ` Kenichi Handa
  1 sibling, 0 replies; 11+ messages in thread
From: Kenichi Handa @ 2008-08-10 23:59 UTC (permalink / raw)
  To: Jihyun Cho; +Cc: emacs-devel

In article <9d644d9b0808092302g33d75c15l746d01d735d49130@mail.gmail.com>, "Jihyun Cho" <jihyun.jo@gmail.com> writes:

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

Thank you.  I committed that change.

---
Kenichi Handa
handa@ni.aist.go.jp




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-10 11:53 ` Juanma Barranquero
@ 2008-08-11  0:29   ` Jihyun Cho
  2008-08-11  0:31     ` Juanma Barranquero
  2008-08-11  0:55     ` Kenichi Handa
  0 siblings, 2 replies; 11+ messages in thread
From: Jihyun Cho @ 2008-08-11  0:29 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel Mailinglist

2008/8/10, Juanma Barranquero <lekktu@gmail.com>:
> On Sun, Aug 10, 2008 at 08:02, Jihyun Cho <jihyun.jo@gmail.com> wrote:
>
> > This patch adjust an index of array.
>
> Could you please add a suitable ChangeLog entry?
>
>   Juanma
>

It is a simple bug.
An array size is 6. But I refer to the last element as 6.




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-11  0:29   ` Jihyun Cho
@ 2008-08-11  0:31     ` Juanma Barranquero
  2008-08-11  1:15       ` Jihyun Cho
  2008-08-11  0:55     ` Kenichi Handa
  1 sibling, 1 reply; 11+ messages in thread
From: Juanma Barranquero @ 2008-08-11  0:31 UTC (permalink / raw)
  To: Jihyun Cho; +Cc: emacs-devel Mailinglist

On Mon, Aug 11, 2008 at 02:29, Jihyun Cho <jihyun.jo@gmail.com> wrote:

> It is a simple bug.
> An array size is 6. But I refer to the last element as 6.

Patches for simple bugs also have ChangeLog entries... :-)

   Juanma




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-11  0:29   ` Jihyun Cho
  2008-08-11  0:31     ` Juanma Barranquero
@ 2008-08-11  0:55     ` Kenichi Handa
  1 sibling, 0 replies; 11+ messages in thread
From: Kenichi Handa @ 2008-08-11  0:55 UTC (permalink / raw)
  To: Jihyun Cho; +Cc: lekktu, emacs-devel

In article <9d644d9b0808101729l5b414df0i362c539f26ce41a6@mail.gmail.com>, "Jihyun Cho" <jihyun.jo@gmail.com> writes:

> 2008/8/10, Juanma Barranquero <lekktu@gmail.com>:
> > On Sun, Aug 10, 2008 at 08:02, Jihyun Cho <jihyun.jo@gmail.com> wrote:
> >
> > > This patch adjust an index of array.
> >
> > Could you please add a suitable ChangeLog entry?
> >
> >   Juanma
> >

> It is a simple bug.
> An array size is 6. But I refer to the last element as 6.

I committed the change with a proper ChangeLog entry.  But,
when you provide a patch next time, please add a ChangeLog
entry too.

---
Kenichi Handa
handa@ni.aist.go.jp




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-11  0:31     ` Juanma Barranquero
@ 2008-08-11  1:15       ` Jihyun Cho
  2008-08-11  9:13         ` Thien-Thi Nguyen
  0 siblings, 1 reply; 11+ messages in thread
From: Jihyun Cho @ 2008-08-11  1:15 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel Mailinglist

2008/8/11, Juanma Barranquero <lekktu@gmail.com>:
> On Mon, Aug 11, 2008 at 02:29, Jihyun Cho <jihyun.jo@gmail.com> wrote:
>
> > It is a simple bug.
> > An array size is 6. But I refer to the last element as 6.
>
> Patches for simple bugs also have ChangeLog entries... :-)
>
>   Juanma
>

Ok. I see.
When you type the Korean Jongseong, bug occurs.
So you can not type some characters in the Korean 3-Bulsik.
I fixed it.




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-11  1:15       ` Jihyun Cho
@ 2008-08-11  9:13         ` Thien-Thi Nguyen
  2008-08-11 15:11           ` Jihyun Cho
  0 siblings, 1 reply; 11+ messages in thread
From: Thien-Thi Nguyen @ 2008-08-11  9:13 UTC (permalink / raw)
  To: Jihyun Cho; +Cc: emacs-devel Mailinglist

() "Jihyun Cho" <jihyun.jo@gmail.com>
() Mon, 11 Aug 2008 10:15:55 +0900

   Ok. I see.
   When you type the Korean Jongseong, bug occurs.
   So you can not type some characters in the Korean 3-Bulsik.
   I fixed it.

Juanma is asking for a specific form of explanation, one that can
be prepended to the ChangeLog file.  In this case, it is best if
you respond like so:

|Here's a suitable ChangeLog entry:
|
|YYYY-MM-DD  Jihyun Cho  <jihyun.jo@gmail.com>  (tiny change)
|
|	* quail/hangul.el (hangul3-input-method-jong): Fix typo.

The asterisk, parens and colon are part of the ChangeLog format.
The filename is relative to the closest directory (traveling towards
the root) that contains a ChangeLog file.  The parenthesized symbol
indicates the top-level form where the change occurs.  The blurb
"Fix typo" describes the change.

In this way, you show good spirit by playing the maintainer's role.

thi




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-11  9:13         ` Thien-Thi Nguyen
@ 2008-08-11 15:11           ` Jihyun Cho
  2008-08-11 15:22             ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 11+ messages in thread
From: Jihyun Cho @ 2008-08-11 15:11 UTC (permalink / raw)
  To: Thien-Thi Nguyen; +Cc: emacs-devel Mailinglist

2008/8/11 Thien-Thi Nguyen <ttn@gnuvola.org>:
> () "Jihyun Cho" <jihyun.jo@gmail.com>
> () Mon, 11 Aug 2008 10:15:55 +0900
>
>   Ok. I see.
>   When you type the Korean Jongseong, bug occurs.
>   So you can not type some characters in the Korean 3-Bulsik.
>   I fixed it.
>
> Juanma is asking for a specific form of explanation, one that can
> be prepended to the ChangeLog file.  In this case, it is best if
> you respond like so:
>
> |Here's a suitable ChangeLog entry:
> |
> |YYYY-MM-DD  Jihyun Cho  <jihyun.jo@gmail.com>  (tiny change)
> |
> |       * quail/hangul.el (hangul3-input-method-jong): Fix typo.
>
> The asterisk, parens and colon are part of the ChangeLog format.
> The filename is relative to the closest directory (traveling towards
> the root) that contains a ChangeLog file.  The parenthesized symbol
> indicates the top-level form where the change occurs.  The blurb
> "Fix typo" describes the change.
>
> In this way, you show good spirit by playing the maintainer's role.
>
> thi
>

Aha. I'm sorry.
Next time, I will care about to add to a suitable ChangeLog.




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-11 15:11           ` Jihyun Cho
@ 2008-08-11 15:22             ` Lennart Borgman (gmail)
  2008-08-11 18:08               ` Thien-Thi Nguyen
  0 siblings, 1 reply; 11+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-11 15:22 UTC (permalink / raw)
  To: Jihyun Cho; +Cc: Thien-Thi Nguyen, emacs-devel Mailinglist

Jihyun Cho wrote:
> 2008/8/11 Thien-Thi Nguyen <ttn@gnuvola.org>:
>> () "Jihyun Cho" <jihyun.jo@gmail.com>
>> () Mon, 11 Aug 2008 10:15:55 +0900
>>
>>   Ok. I see.
>>   When you type the Korean Jongseong, bug occurs.
>>   So you can not type some characters in the Korean 3-Bulsik.
>>   I fixed it.
>>
>> Juanma is asking for a specific form of explanation, one that can
>> be prepended to the ChangeLog file.  In this case, it is best if
>> you respond like so:
>>
>> |Here's a suitable ChangeLog entry:
>> |
>> |YYYY-MM-DD  Jihyun Cho  <jihyun.jo@gmail.com>  (tiny change)
>> |
>> |       * quail/hangul.el (hangul3-input-method-jong): Fix typo.
>>
>> The asterisk, parens and colon are part of the ChangeLog format.
>> The filename is relative to the closest directory (traveling towards
>> the root) that contains a ChangeLog file.  The parenthesized symbol
>> indicates the top-level form where the change occurs.  The blurb
>> "Fix typo" describes the change.
>>
>> In this way, you show good spirit by playing the maintainer's role.
>>
>> thi
>>
> 
> Aha. I'm sorry.
> Next time, I will care about to add to a suitable ChangeLog.

Though something more informative than "fix typo" would perhaps be good 
in a change like this? With just this information I would assume that it 
was a typo in the doc string. Maybe

   Fix typo in index bound, replaced 6 by 5.




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

* Re: [PATCH] array index bug in 'hangul.el'
  2008-08-11 15:22             ` Lennart Borgman (gmail)
@ 2008-08-11 18:08               ` Thien-Thi Nguyen
  0 siblings, 0 replies; 11+ messages in thread
From: Thien-Thi Nguyen @ 2008-08-11 18:08 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Jihyun Cho, emacs-devel Mailinglist

() "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
() Mon, 11 Aug 2008 17:22:56 +0200

   Though something more informative than "fix typo"
   would perhaps be good in a change like this?

You're right.  "Fix typo" is lame.
I think the current entry is best:
"Fix array indexing bug."

thi




^ 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).