Eli Zaretskii [Fri, 15 Mar 2002 12:54:41 +0000 (12:54 +0000)]
Document support for AIX 5.1.
Eli Zaretskii [Fri, 15 Mar 2002 12:47:05 +0000 (12:47 +0000)]
Regenerated.
Eli Zaretskii [Fri, 15 Mar 2002 12:45:35 +0000 (12:45 +0000)]
Support AIX 5.1.
Eli Zaretskii [Fri, 15 Mar 2002 12:41:52 +0000 (12:41 +0000)]
Renamed elisp-vol?.texi into vol?.texi, as in HEAD.
Eli Zaretskii [Wed, 13 Mar 2002 19:59:37 +0000 (19:59 +0000)]
(Symbol Type): Avoid makeinfo warnings about colons in indices.
Eli Zaretskii [Wed, 13 Mar 2002 19:47:16 +0000 (19:47 +0000)]
(Lisp Eval): Avoid makeinfo warning about colons in indices.
Eli Zaretskii [Wed, 13 Mar 2002 19:46:18 +0000 (19:46 +0000)]
(Merging Files with Emerge): Fix the cross-reference to the Ediff manual.
Eli Zaretskii [Wed, 13 Mar 2002 19:45:28 +0000 (19:45 +0000)]
(Electric C): Avoid makeinfo warnings about colons in indices.
Eli Zaretskii [Wed, 13 Mar 2002 19:44:01 +0000 (19:44 +0000)]
(Top): Fix the cross-reference to the ELisp manual.
Stefan Monnier [Wed, 13 Mar 2002 17:12:02 +0000 (17:12 +0000)]
(x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
line) to avoid annoying flicker.
(xm_scroll_callback): Get rid of the now unnecessary kludge.
(XTread_socket): Mark it static.
Jason Rumney [Tue, 12 Mar 2002 20:24:42 +0000 (20:24 +0000)]
Added note about format-time-string deficiencies on MS-Windows.
Juanma Barranquero [Tue, 12 Mar 2002 17:28:29 +0000 (17:28 +0000)]
(syms_of_editfns): Fix typo.
Francesco Potortì [Tue, 12 Mar 2002 13:23:23 +0000 (13:23 +0000)]
*** empty log message ***
Francesco Potortì [Tue, 12 Mar 2002 11:17:02 +0000 (11:17 +0000)]
(Python_functions): Skip spaces at beginning of lines.
Pavel Janík [Mon, 11 Mar 2002 13:10:34 +0000 (13:10 +0000)]
(image-type-from-file-header): Make temporary buffer unibyte.
Jason Rumney [Sat, 9 Mar 2002 10:16:40 +0000 (10:16 +0000)]
(Fcopy_file): Fix last change.
Eli Zaretskii [Sat, 9 Mar 2002 09:17:58 +0000 (09:17 +0000)]
(shell-command-on-region): Call push-mark with non-nil second arg,
to suppress the "Mark set" message.
Jason Rumney [Sat, 9 Mar 2002 00:45:25 +0000 (00:45 +0000)]
(Fcopy_file) [WINDOWS_NT]: Ensure file is not
read-only when setting modified time.
Juanma Barranquero [Fri, 8 Mar 2002 16:36:10 +0000 (16:36 +0000)]
Fix previous change.
Juanma Barranquero [Fri, 8 Mar 2002 16:22:37 +0000 (16:22 +0000)]
(Fx_display_color_cells): Force 24+ bit color depths to 24-bit.
Juanma Barranquero [Fri, 8 Mar 2002 16:22:19 +0000 (16:22 +0000)]
*** empty log message ***
Gerd Moellmann [Fri, 8 Mar 2002 12:32:02 +0000 (12:32 +0000)]
(move_it_vertically_backward): At the end of the
function, when moving forward by lines, treat terminal frames
specially.
Gerd Moellmann [Thu, 7 Mar 2002 11:36:44 +0000 (11:36 +0000)]
(ebrowse-view/find-file-and-search-pattern):
Use the other-window instead of the other-frame functions when
the window is dedicated.
Gerd Moellmann [Thu, 7 Mar 2002 11:35:46 +0000 (11:35 +0000)]
*** empty log message ***
Eli Zaretskii [Tue, 5 Mar 2002 18:57:46 +0000 (18:57 +0000)]
(mac-roman): Fix last change.
Eli Zaretskii [Tue, 5 Mar 2002 18:32:03 +0000 (18:32 +0000)]
(Internationale): Fix wording of the last change.
Eli Zaretskii [Tue, 5 Mar 2002 18:27:59 +0000 (18:27 +0000)]
(mac-roman): Fix the safe-chars property.
André Spiegel [Tue, 5 Mar 2002 13:42:36 +0000 (13:42 +0000)]
#
André Spiegel [Tue, 5 Mar 2002 13:41:05 +0000 (13:41 +0000)]
(vc-revert-buffer): If the buffer is not saved, prompt the user to do
that first.
Stefan Monnier [Mon, 4 Mar 2002 01:39:55 +0000 (01:39 +0000)]
(tex-guess-main-file): Handle the case where one of the buffers is narrowed.
Stefan Monnier [Mon, 4 Mar 2002 01:17:27 +0000 (01:17 +0000)]
(comment-forward): Use forward-comment to skip
over whitespace (or comments) even when comment-use-syntax is nil.
Pavel Janík [Sat, 2 Mar 2002 20:45:28 +0000 (20:45 +0000)]
(tildify-string-alist): Entry for xml-mode added.
From Milan Zamazal <pdm@zamazal.org>.
Eli Zaretskii [Sat, 2 Mar 2002 14:40:50 +0000 (14:40 +0000)]
(International, Language Environments, Specify Coding): Make it clear that
locale-coding-system is used for decoding keyboard input on X.
Jan Djärv [Sat, 2 Mar 2002 11:22:27 +0000 (11:22 +0000)]
Added information on how to set options in CDE so
dialogs are not covered by the parent frame.
Andreas Schwab [Fri, 1 Mar 2002 15:54:26 +0000 (15:54 +0000)]
(texinfo-start-menu-description): Remove extra paren in regexp.
Eli Zaretskii [Tue, 26 Feb 2002 15:39:55 +0000 (15:39 +0000)]
(ctext-no-compositions): Remove the mime-charset property.
Eli Zaretskii [Tue, 26 Feb 2002 15:33:45 +0000 (15:33 +0000)]
("Dutch"): Doc fix.
Jason Rumney [Mon, 25 Feb 2002 22:55:49 +0000 (22:55 +0000)]
*** empty log message ***
Jason Rumney [Mon, 25 Feb 2002 22:37:02 +0000 (22:37 +0000)]
(iso-2022-jp-2): Add init-bol flag.
Jason Rumney [Sun, 24 Feb 2002 01:05:13 +0000 (01:05 +0000)]
(w32-charset-info-alist): Use ansi fonts for
iso10646-1 if unicode is not available.
Eli Zaretskii [Sat, 23 Feb 2002 18:44:30 +0000 (18:44 +0000)]
(run_pre_post_conversion_on_str): Add prototype.
Eli Zaretskii [Sat, 23 Feb 2002 09:04:37 +0000 (09:04 +0000)]
*** empty log message ***
Eli Zaretskii [Sat, 23 Feb 2002 08:59:19 +0000 (08:59 +0000)]
(selection_data_to_lisp_data): Fix last change.
Stefan Monnier [Fri, 22 Feb 2002 17:00:21 +0000 (17:00 +0000)]
(diff-end-of-hunk): Watch out for ambiguous headers.
Eli Zaretskii [Fri, 22 Feb 2002 16:27:57 +0000 (16:27 +0000)]
Fix the last entry.
Eli Zaretskii [Fri, 22 Feb 2002 16:26:41 +0000 (16:26 +0000)]
(find-tag-noselect, find-tag)
(find-tag-other-window, find-tag-other-frame, find-tag-regexp):
Fix a typo in doc strings.
Eli Zaretskii [Fri, 22 Feb 2002 12:56:33 +0000 (12:56 +0000)]
Fix the change from 2002-02-02.
Eli Zaretskii [Fri, 22 Feb 2002 11:28:11 +0000 (11:28 +0000)]
Files loaddefs.el and finder-inf.el regenerated.
Eli Zaretskii [Fri, 22 Feb 2002 11:21:04 +0000 (11:21 +0000)]
(BASE_PURESIZE): Increase to 710000.
Eli Zaretskii [Fri, 22 Feb 2002 11:16:41 +0000 (11:16 +0000)]
Document the new coding system compound-text-with-extensions.
Eli Zaretskii [Fri, 22 Feb 2002 11:01:26 +0000 (11:01 +0000)]
Update copyright years.
Eli Zaretskii [Fri, 22 Feb 2002 11:00:24 +0000 (11:00 +0000)]
Set Emacs version to 21.1.95.
Eli Zaretskii [Fri, 22 Feb 2002 10:46:14 +0000 (10:46 +0000)]
*** empty log message ***
Eli Zaretskii [Fri, 22 Feb 2002 10:45:22 +0000 (10:45 +0000)]
(ctext-no-compositions, compound-text-with-extensions): New coding systems.
(x-ctext-with-extensions, ctext-with-extensions): Aliases for
compound-text-with-extensions.
(non-standard-icccm-encodings-alist, non-standard-designations-alist): New
variables.
(ctext-post-read-conversion, ctext-pre-write-conversion): New functions.
Eli Zaretskii [Fri, 22 Feb 2002 10:42:23 +0000 (10:42 +0000)]
<Qcompound_text_with_extensions>: New variable.
(syms_of_xselect): Intern and staticpro it.
(selection_data_to_lisp_data): Run post-read-conversion on decoded
selection text.
(lisp_data_to_selection_data): If next-selection-coding-system is
compound-text-with-extensions, set the type of selection to be
compound-text.
Eli Zaretskii [Fri, 22 Feb 2002 10:41:44 +0000 (10:41 +0000)]
(x_encode_text): Update prototype.
Eli Zaretskii [Fri, 22 Feb 2002 10:40:56 +0000 (10:40 +0000)]
(x_encode_text): Accept additional arg SELECTIONP; all
callers changed. If SELECTIONP is non-zero, run the
pre-write-conversion function before encoding the selection text.
ShengHuo ZHU [Thu, 21 Feb 2002 17:58:57 +0000 (17:58 +0000)]
* gnus-art.el (gnus-article-edit-done): Widen the article buffer.
Pavel Janík [Wed, 20 Feb 2002 10:28:33 +0000 (10:28 +0000)]
(gif_load): Use correct width and height for GIF images.
ShengHuo ZHU [Tue, 19 Feb 2002 14:06:23 +0000 (14:06 +0000)]
* mail-source.el (mail-source-fetch-directory): Run scripts.
ShengHuo ZHU [Tue, 19 Feb 2002 13:31:46 +0000 (13:31 +0000)]
* mm-encode.el (mm-content-transfer-encoding-defaults): Set
default to base64. Add application/emacs-lisp.
Paul Eggert [Tue, 19 Feb 2002 06:47:14 +0000 (06:47 +0000)]
* make-dist: Port to POSIX 1003.1-2001, which doesn't allow "head -1".
"sed q" is a portable equivalent to plain "head -1".
Paul Eggert [Tue, 19 Feb 2002 06:45:05 +0000 (06:45 +0000)]
Port to POSIX 1003.1-2001, which doesn't allow "head -1".
"sed q" is a portable equivalent to plain "head -1".
Jason Rumney [Mon, 18 Feb 2002 23:52:03 +0000 (23:52 +0000)]
(glyph_rect): Determine the row and glyph more precisely.
Jason Rumney [Mon, 18 Feb 2002 23:50:47 +0000 (23:50 +0000)]
*** empty log message ***
Andreas Schwab [Mon, 18 Feb 2002 20:31:48 +0000 (20:31 +0000)]
(query-replace-regexp-eval): Doc fix.
Jason Rumney [Mon, 18 Feb 2002 00:03:15 +0000 (00:03 +0000)]
Define VS_VERSION_INFO if not already.
Update version info.
ShengHuo ZHU [Sat, 16 Feb 2002 19:55:58 +0000 (19:55 +0000)]
* gnus-msg.el (gnus-post-method): Fix doc.
ShengHuo ZHU [Sat, 16 Feb 2002 19:06:13 +0000 (19:06 +0000)]
* gnus-sum.el (gnus-rebuild-thread): Count hidden lines too.
Pavel Janík [Sat, 16 Feb 2002 18:25:06 +0000 (18:25 +0000)]
Update version information.
Andreas Schwab [Fri, 15 Feb 2002 17:09:22 +0000 (17:09 +0000)]
(tex-font-lock-keywords-2): Require non-letter after specials.
Eli Zaretskii [Fri, 15 Feb 2002 12:10:42 +0000 (12:10 +0000)]
Copy some changes from the CVS head.
Eli Zaretskii [Fri, 15 Feb 2002 12:07:14 +0000 (12:07 +0000)]
(popmail): Always pass two args to `error'.
Eli Zaretskii [Fri, 15 Feb 2002 12:06:48 +0000 (12:06 +0000)]
(xrealloc): Always pass two args to `fatal'.
Eli Zaretskii [Fri, 15 Feb 2002 12:06:20 +0000 (12:06 +0000)]
(main): Cast isdigit argument to unsigned char.
Eli Zaretskii [Fri, 15 Feb 2002 12:05:25 +0000 (12:05 +0000)]
(main): Cast geteuid in sprintf to int.
Eli Zaretskii [Fri, 15 Feb 2002 11:31:12 +0000 (11:31 +0000)]
Fixes from Dave Love for W3 and PSGML entries.
Jason Rumney [Wed, 13 Feb 2002 20:14:07 +0000 (20:14 +0000)]
Add notes about cross-compiling between Windows XP and 9x/ME.
Eli Zaretskii [Tue, 12 Feb 2002 17:49:11 +0000 (17:49 +0000)]
(Selected Windows): Document that save-selected-window doesn't switch
back to the saved window if that window is no longer alive.
Eli Zaretskii [Tue, 12 Feb 2002 17:46:45 +0000 (17:46 +0000)]
(save-selected-window): If the saved window has
become dead while macro body was running, refrain from switching
to it.
Eli Zaretskii [Tue, 12 Feb 2002 17:34:39 +0000 (17:34 +0000)]
(pascal-imenu-generic-expression): Add menu-title and fix parentheses.
Jason Rumney [Mon, 11 Feb 2002 22:09:00 +0000 (22:09 +0000)]
(show_mouse_face): Fix bug setting a row's
mouse_face_p flag unconditionally.
(x_scroll_run): Revert to BitBlt.
Andrew Innes [Mon, 11 Feb 2002 16:32:00 +0000 (16:32 +0000)]
(CFLAGS): Define _WIN32_WINNT as 0x0400, in order to
pick up relevant bits of the Windows API definitions.
Paul Eggert [Sun, 10 Feb 2002 08:11:51 +0000 (08:11 +0000)]
Update copyright date.
Paul Eggert [Sun, 10 Feb 2002 08:07:30 +0000 (08:07 +0000)]
* rcs-checkin: Use `sort -k 2', not `sort +1', as POSIX 1003.1-2001
disallows the old syntax.
Paul Eggert [Sun, 10 Feb 2002 08:05:31 +0000 (08:05 +0000)]
Use `sort -k 2' rather than `sort +1', as POSIX 1003.1-2001 disallows
`sort +1'.
Jason Rumney [Sat, 9 Feb 2002 01:27:07 +0000 (01:27 +0000)]
(w32_load_system_font): Prevent Cleartype fonts from loading.
Jason Rumney [Sat, 9 Feb 2002 01:12:53 +0000 (01:12 +0000)]
(enum_font_cb2): Don't let charsets unknown to Windows
match each other.
Eli Zaretskii [Fri, 8 Feb 2002 19:02:08 +0000 (19:02 +0000)]
(ffap-newsgroup-p): Test for non-nil symbol-value of htb.
Eli Zaretskii [Fri, 8 Feb 2002 18:54:30 +0000 (18:54 +0000)]
(calendar-mode-map): Change the menu item's name to "Insert Diary Entry".
Eli Zaretskii [Fri, 8 Feb 2002 13:04:36 +0000 (13:04 +0000)]
(Fround): Fix a typo.
Eli Zaretskii [Fri, 8 Feb 2002 12:50:23 +0000 (12:50 +0000)]
(ange-ftp-process-handle-line, ange-ftp-set-xfer-size): If the file's
size is a float, divide by 1024 instead of using ash.
Eli Zaretskii [Fri, 8 Feb 2002 10:24:10 +0000 (10:24 +0000)]
(Fround): Doc fix.
Stefan Monnier [Thu, 7 Feb 2002 20:21:22 +0000 (20:21 +0000)]
(Fx_file_dialog): Export (for Motif code in fileio.c).
ShengHuo ZHU [Thu, 7 Feb 2002 15:55:05 +0000 (15:55 +0000)]
* gnus-art.el (article-wash-html): Bind url-gateway-unplugged.
* mm-view.el (mm-w3-prepare-buffer): Ditto.
(mm-inline-text): Ditto.
Suggested by Dave Love <fx@gnu.org>.
ShengHuo ZHU [Thu, 7 Feb 2002 15:49:47 +0000 (15:49 +0000)]
* mail/rmail.el (rmail-enable-mime-composing): New. A lightweight
version of rmail-enable-mime.
(rmail-forward): Use it.
ShengHuo ZHU [Thu, 7 Feb 2002 15:44:12 +0000 (15:44 +0000)]
* mml.el (mml-preview): Disable local map.
* mml.el (mml-preview): Bind `q'.
From: Karl Kleinpaste <karl@charcoal.com>
And fix copyright lines.
ShengHuo ZHU [Thu, 7 Feb 2002 15:28:34 +0000 (15:28 +0000)]
2002-02-03 ShengHuo ZHU <zsh@cs.rochester.edu>
* message.el (message-forward-rmail-make-body): Directly use
rmail-msg-restore-non-pruned-header to avoid calling
vertical-motion.
2002-01-03 ShengHuo ZHU <zsh@cs.rochester.edu>
* mm-util.el (mm-charset-to-coding-system): Don't setq charset.
* mm-util.el (mm-use-find-coding-systems-region): New variable.
(mm-find-mime-charset-region): Use it.
* nntp.el (nntp-send-buffer): Use mm-with-unibyte-current-buffer.
* nnspool.el (nnspool-request-post): Ditto.
2002-01-01 ShengHuo ZHU <zsh@cs.rochester.edu>
* message.el, gnus-art.el, gnus.el, gnus-cite.el:
Adapt face definitions to use :weight and :slant.
2001-12-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
* gnus-mlspl.el (gnus-group-split-fancy): Doc fix (add reference
to variable, follow doc-string conventions).
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
* mm-view.el (mm-inline-text): w3-coding-system-for-mime-charset
may not defined. From: Raja R Harinath <harinath@cs.umn.edu>.
* mm-view.el (mm-inline-message): Insert a newline unless bolp.
* gnus-sum.el (gnus-summary-save-article): Nix
gnus-display-mime-function and gnus-article-prepare-hook.
2001-12-01 ShengHuo ZHU <zsh@cs.rochester.edu>
* message.el (message-mail): Add send-actions.
2001-11-28 ShengHuo ZHU <zsh@cs.rochester.edu>
* gnus-sum.el (gnus-summary-limit-to-author): Fix the number of
arguments.
2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
* imap.el (imap-interactive-login, imap-open, imap-authenticate):
Use make-local-variable rather than make-variable-buffer-local.
2001-11-25 ShengHuo ZHU <zsh@cs.rochester.edu>
* message.el (message-forward-rmail-make-body): Use
save-window-excursion.
(message-encode-message-body): Use noerror when search.
(message-setup-1): Convert compose-mail send-actions to
message-send-actions.
* message.el (message-forward-subject-author-subject): Don't use
message-news-p, which widens the buffer.
(message-forward-make-body): New function.
(message-forward): Use it.
(message-insinuate-rmail): New function.
(message-forward-rmail-make-body): New function.
* gnus-util.el (gnus-directory-sep-char-regexp): New variable.
* gnus-score.el (gnus-score-find-bnews): Use it.
* mm-util.el (mm-iso-8859-x-to-15-region): Use
insert-before-markers.
From Jesper Harder <harder@ifa.au.dk>
* mm-util.el (mm-coding-system-priorities): Add backslash in the doc.
* mm-util.el (mm-coding-system-priorities): New variable.
(mm-sort-coding-systems-predicate): New function.
(mm-find-mime-charset-region): Resort coding systems if needed.
Suggested by Katsumi Yamaoka <yamaoka@jpl.org>.
* mm-util.el (mm-iso-8859-15-compatible): Fix doc.
(mm-hack-charsets): Fix doc.
* mm-util.el (mm-iso-8859-15-compatible): Add inconvertible chars.
(mm-iso-8859-x-to-15-table): Ditto.
(mm-iso-8859-x-to-15-region): Ditto.
(mm-find-mime-charset-region): Ditto.
* gnus-sum.el (gnus-summary-limit-to-subject): An exclusion version.
(gnus-summary-limit-to-author): Ditto.
(gnus-summary-limit-to-extra): Ditto.
(gnus-summary-find-matching): Support not-matching argument.
* message.el (message-wash-subject): Use `insert' rather than
`insert-string', which is deprecated.
From Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2001-11-14 Sam Steingold <sds@gnu.org>
* gnus-score.el: Fixed some doc strings to properly quote symbols.
2001-11-10 Pavel Jan\e,Al\e(Bk <Pavel@Janik.cz>
* gnus.el (gnus-local-domain): Reformat the doc-string to refer to
function `system-name' instead of both function and variable.
2001-11-07 ShengHuo ZHU <zsh@cs.rochester.edu>
* mml.el (mml-preview): Bind mail-header-separator.
2001-11-05 ShengHuo ZHU <zsh@cs.rochester.edu>
* mml.el (mml-generate-mime-1): Use mm-with-unibyte-current-buffer.
Suggested by Dave Love <fx@gnu.org>.
2001-11-01 ShengHuo ZHU <zsh@cs.rochester.edu>
* mm-util.el (mm-charset-synonym-alist): Revert (some).
2001-10-30 ShengHuo ZHU <zsh@cs.rochester.edu>
* mm-util.el (mm-iso-8859-x-to-15-region): New function.
(mm-hack-charsets): New variable.
(mm-iso-8859-15-compatible): New variable.
(mm-iso-8859-x-to-15-table): New variable.
(mm-find-mime-charset-region): Add parameter hack-charsets.
* mm-util.el (mm-charset-to-coding-system): Return nil, if charset
is nil.
* nnultimate.el, nnweb.el, nnslashdot.el: Update, because the web
pages are changed.
* mm-util.el (mm-mime-mule-charset-alist): Move down and call
mm-coding-system-p. Don't correct it only in XEmacs.
(mm-charset-to-coding-system): Use mm-coding-system-p and
mm-get-coding-system-list.
(mm-emacs-mule, mm-mule4-p): New.
(mm-enable-multibyte, mm-disable-multibyte,
mm-enable-multibyte-mule4, mm-disable-multibyte-mule4,
mm-with-unibyte-current-buffer,
mm-with-unibyte-current-buffer-mule4): Use them.
(mm-find-mime-charset-region): Treat iso-2022-jp.
From Dave Love <fx@gnu.org>:
* mm-util.el (mm-mime-mule-charset-alist): Make it correct by
construction.
(mm-charset-synonym-alist): Remove windows-125[02]. Make other
entries conditional on not having a coding system defined for
them.
(mm-mule-charset-to-mime-charset): Use
find-coding-systems-for-charsets if defined.
(mm-charset-to-coding-system): Don't use
mm-get-coding-system-list. Look in mm-charset-synonym-alist
later. Add last resort search of coding systems.
(mm-enable-multibyte-mule4, mm-disable-multibyte-mule4)
(mm-with-unibyte-current-buffer-mule4): Just treat Mule 5 like
Mule 4.
(mm-find-mime-charset-region): Re-write.
(mm-with-unibyte-current-buffer): Restore buffer as well as
multibyteness.
2001-10-27 Stefan Monnier <monnier@cs.yale.edu>
* gnus-msg.el (gnus-setup-message): Setup reaper for MML buffers.
Jason Rumney [Wed, 6 Feb 2002 21:00:56 +0000 (21:00 +0000)]
(w32_native_per_char_metric): Disable 2002-01-20 change.
Eli Zaretskii [Wed, 6 Feb 2002 19:08:44 +0000 (19:08 +0000)]
(get_charset_id): Use if-else instead of ?:.