ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.9 by pcg, Tue Dec 2 21:49:46 2003 UTC vs.
Revision 1.10 by pcg, Mon Dec 8 23:14:40 2003 UTC

1/*--------------------------------*-C-*---------------------------------* 1/*--------------------------------*-C-*---------------------------------*
2 * File: init.c 2 * File: init.c
3 *----------------------------------------------------------------------* 3 *----------------------------------------------------------------------*
4 * $Id: init.C,v 1.9 2003/12/02 21:49:46 pcg Exp $ 4 * $Id: init.C,v 1.10 2003/12/08 23:14:40 pcg Exp $
5 * 5 *
6 * All portions of code are copyright by their respective author/s. 6 * All portions of code are copyright by their respective author/s.
7 * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> 7 * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
8 * - original version 8 * - original version
9 * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> 9 * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com>
823#ifdef USE_XIM 823#ifdef USE_XIM
824 if (R->locale == NULL) 824 if (R->locale == NULL)
825 rxvt_print_error("Setting locale failed."); 825 rxvt_print_error("Setting locale failed.");
826 else 826 else
827 { 827 {
828 Atom wmlocale; 828 Atom wmlocale;
829 829
830 wmlocale = XInternAtom(R->Xdisplay, "WM_LOCALE_NAME", False); 830 wmlocale = XInternAtom(R->Xdisplay, "WM_LOCALE_NAME", False);
831 XChangeProperty(R->Xdisplay, R->TermWin.parent[0], wmlocale, 831 XChangeProperty(R->Xdisplay, R->TermWin.parent[0], wmlocale,
832 XA_STRING, 8, PropModeReplace, 832 XA_STRING, 8, PropModeReplace,
833 (unsigned char *)R->locale, STRLEN(R->locale)); 833 (unsigned char *)R->locale, STRLEN(R->locale));
835 if (XSupportsLocale() != True) 835 if (XSupportsLocale() != True)
836 { 836 {
837 rxvt_print_error("The locale is not supported by Xlib"); 837 rxvt_print_error("The locale is not supported by Xlib");
838 return; 838 return;
839 } 839 }
840
840 rxvt_setTermFontSet(aR_ 0); 841 rxvt_setTermFontSet(aR_ 0);
841 842
842 /* see if we can connect yet */ 843 /* see if we can connect yet */
843 rxvt_IMInstantiateCallback(R->Xdisplay, NULL, NULL); 844 rxvt_IMInstantiateCallback(R->Xdisplay, NULL, NULL);
844 845

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines