From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: timo.myyra@gmail.com (Timo =?utf-8?Q?Myyr=C3=A4?=) Newsgroups: gmane.emacs.help Subject: Re: Problem with umlaut printing Date: Mon, 04 May 2009 14:34:42 +0300 Message-ID: <87my9tt831.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1241436996 22616 80.91.229.12 (4 May 2009 11:36:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 May 2009 11:36:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 04 13:36:21 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M0wT2-0001Hj-8p for geh-help-gnu-emacs@m.gmane.org; Mon, 04 May 2009 13:36:17 +0200 Original-Received: from localhost ([127.0.0.1]:47984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0wT1-0005f5-FG for geh-help-gnu-emacs@m.gmane.org; Mon, 04 May 2009 07:36:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0wSb-0005et-CO for help-gnu-emacs@gnu.org; Mon, 04 May 2009 07:35:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0wSW-0005eK-R0 for help-gnu-emacs@gnu.org; Mon, 04 May 2009 07:35:49 -0400 Original-Received: from [199.232.76.173] (port=35039 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0wSW-0005eG-L3 for help-gnu-emacs@gnu.org; Mon, 04 May 2009 07:35:44 -0400 Original-Received: from mail-ew0-f162.google.com ([209.85.219.162]:35820) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0wSW-00062C-9A for help-gnu-emacs@gnu.org; Mon, 04 May 2009 07:35:44 -0400 Original-Received: by ewy6 with SMTP id 6so3949005ewy.42 for ; Mon, 04 May 2009 04:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=6QOoDB5TzhxVLnviSHuAfE+fmOwMmctZNrx8UrUNBRY=; b=CtslZ/jE/euzTyf4+h221OcZ3Mpjv1Kcljtz+1lo4UeE+iIyif3FCInqzknDINtrNI msD+QIWMYQd/95IqUVNwxHnDgdYTAheLgrSJNRsit0+vPeWL36E4mFgYh7BGNy9lJT8c 7N+YZWyqcMk8HGoB4w9BzMETKqJJWP30+zijs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=MFsNH53CR+Xya+3DpOrx0fITC/E4SWXNKUFNWlEAjTKL0x0rRBzC2eQBmBTanrpQdy lk7TM91WaojtVGCLSqanHptggicwNRDkHOuQqGgdpydUsIhZEksblcy9tx366nR/+5az Y21E7D/aioUFsfrkzXr8eajsL4OgTIlSktqgI= Original-Received: by 10.216.11.137 with SMTP id 9mr1643988wex.180.1241436943197; Mon, 04 May 2009 04:35:43 -0700 (PDT) Original-Received: from cube (hoasnet-ff06dd00-179.dhcp.inet.fi [80.221.6.179]) by mx.google.com with ESMTPS id 7sm1600366eyb.15.2009.05.04.04.35.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 May 2009 04:35:42 -0700 (PDT) In-Reply-To: (Peter Dyballa's message of "Mon, 4 May 2009 11:01:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64172 Archived-At: Peter Dyballa writes: > Am 03.05.2009 um 19:39 schrieb Timo Myyrä: > >> Snippet of my ~/.emacs: >> (set-language-environment "utf-8") >> (prefer-coding-system 'utf-8) >> (set-keyboard-coding-system 'utf-8) >> (set-terminal-coding-system 'utf-8) > > I'd only use the second setting and provide the environment from which > GNU Emacs launches with the environment variable LC_CTYPE pointing to > some UTF-8 locale. > > Another option is to press in *scratch* buffer C-q ä to see what GNU > Emacs sees as input. Double-check this with the output provided by > xev. > > -- > Greetings > > Pete > > The mathematician who pursues his studies without clear views of this > matter, must often have the uncomfortable feeling that his paper and > pencil surpass him in intelligence. > – Ernst Mach I use same config on Linux and OpenBSD. OpenBSD doesn't use locales so I specify the options in the config file. Pressing the C-q ä in *scratch* printed ä on buffer immidiately after pressing the ä so it seems to work correctly. xev gives following output: KeyPress event, serial 28, synthetic NO, window 0xe00001, root 0x125, subw 0xe00002, time 4227595, (61,56), root:(62,57), state 0x10, keycode 94 (keysym 0xe4, adiaeresis), same_screen YES, XLookupString gives 2 bytes: (c3 a4) "ä" XmbLookupString gives 2 bytes: (c3 a4) "ä" XFilterEvent returns: False Timo