* non-Windows definitions of {EN,DE}CODE_SYSTEM
@ 2003-09-29 17:18 Dave Love
0 siblings, 0 replies; only message in thread
From: Dave Love @ 2003-09-29 17:18 UTC (permalink / raw)
Is there a good reason for the current definition of these things on
non-Doze systems? As far as I can tell, this would be better,
following the WINDOWSNT case:
*** coding.h.~1.68.~ Wed Sep 3 16:00:05 2003
--- coding.h Tue Sep 16 18:46:17 2003
***************
*** 609,616 ****
#else /* WINDOWSNT */
! #define ENCODE_SYSTEM(str) string_make_unibyte(str)
! #define DECODE_SYSTEM(name) name
#endif /* !WINDOWSNT */
--- 609,626 ----
#else /* WINDOWSNT */
! #define ENCODE_SYSTEM(str) \
! (! NILP (Vlocale_coding_system) \
! ? code_convert_string_norecord (str, Vlocale_coding_system, 1) \
! : str)
! #define DECODE_SYSTEM(name) \
! (! NILP (Vlocale_coding_system) \
! ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \
! : str)
! /* The following (original) definitions cause considerable confusion
! if you try to display inappropiately-encoded text in menus. */
! /* #define ENCODE_SYSTEM(str) string_make_unibyte(str) */
! /* #define DECODE_SYSTEM(name) name */
#endif /* !WINDOWSNT */
I think it would typically give less misleading results if you try to
put non-ASCII text in a non-gtk menu. local-coding-system seems to be
the appropriate coding system, at least for X with the server and
client running in the same locale.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-29 17:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-29 17:18 non-Windows definitions of {EN,DE}CODE_SYSTEM Dave Love
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.