comparison src/coding.h @ 112033:a80c1e8d9df4

Encode frame title and icon name before setting. * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment. * nsfns.m (ns_set_name_iconic): Remove. (ns_set_name_internal): New function. (Vicon_title_format): Extern declare. (ns_set_name): Call ns_set_name_internal. (x_explicitly_set_name): Remove call to ns_set_name_iconic. (x_implicitly_set_name): Ditto. (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal. (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
author Jan D. <jan.h.d@swipnet.se>
date Thu, 30 Dec 2010 12:30:55 +0100
parents bec49af30c2f
children 417b1e4d63cd
comparison
equal deleted inserted replaced
112032:209df3f0dcc6 112033:a80c1e8d9df4
684 (! NILP (Vlocale_coding_system) \ 684 (! NILP (Vlocale_coding_system) \
685 && !EQ (Vlocale_coding_system, make_number (0)) \ 685 && !EQ (Vlocale_coding_system, make_number (0)) \
686 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ 686 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \
687 : str) 687 : str)
688 688
689 /* Used by the gtk menu code. Note that this encodes utf-8, not 689 /* Note that this encodes utf-8, not utf-8-emacs, so it's not a no-op. */
690 utf-8-emacs, so it's not a no-op. */
691 #define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1) 690 #define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1)
692 691
693 /* Extern declarations. */ 692 /* Extern declarations. */
694 extern Lisp_Object code_conversion_save (int, int); 693 extern Lisp_Object code_conversion_save (int, int);
695 extern int decoding_buffer_size (struct coding_system *, int); 694 extern int decoding_buffer_size (struct coding_system *, int);