diff options
| author | Andrew Innes | 2000-12-07 10:41:54 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-12-07 10:41:54 +0000 |
| commit | 478ea067cfabd566cf45f47c0d7f52745a6383f4 (patch) | |
| tree | 54b6aace4ddf421adae19c3533ce8cde9109d8ee | |
| parent | 1c3cea113313ace314f32269a79e208234e8f030 (diff) | |
| download | emacs-478ea067cfabd566cf45f47c0d7f52745a6383f4.tar.gz emacs-478ea067cfabd566cf45f47c0d7f52745a6383f4.zip | |
(xlfd_charset_of_font): Fix last change.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2ee4c93c5bc..bd087232997 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2000-12-07 Andrew Innes <andrewi@gnu.org> | ||
| 2 | |||
| 3 | * w32fns.c (xlfd_charset_of_font): Fix last change. | ||
| 4 | |||
| 1 | 2000-12-06 Dave Love <fx@gnu.org> | 5 | 2000-12-06 Dave Love <fx@gnu.org> |
| 2 | 6 | ||
| 3 | * md5.h (__P): Don't define -- it comes from config.h. | 7 | * md5.h (__P): Don't define -- it comes from config.h. |
diff --git a/src/w32fns.c b/src/w32fns.c index 50c86d5e944..b65be25262f 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -5462,9 +5462,11 @@ char * xlfd_charset_of_font (char * fontname) | |||
| 5462 | if (!encoding || encoding == fontname) | 5462 | if (!encoding || encoding == fontname) |
| 5463 | return NULL; | 5463 | return NULL; |
| 5464 | 5464 | ||
| 5465 | charset = strrchr(encoding - 1, '-'); | 5465 | for (charset = encoding - 1; charset >= fontname; charset--) |
| 5466 | if (*charset == '-') | ||
| 5467 | break; | ||
| 5466 | 5468 | ||
| 5467 | if (!charset || strcmp(charset, "-*-*") == 0) | 5469 | if (charset == fontname || strcmp(charset, "-*-*") == 0) |
| 5468 | return NULL; | 5470 | return NULL; |
| 5469 | 5471 | ||
| 5470 | return charset + 1; | 5472 | return charset + 1; |