From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernest =?iso-8859-1?Q?Adrogu=E9?= Newsgroups: gmane.emacs.help Subject: Re: python-shell-send-region uses wrong encoding? Date: Tue, 29 Oct 2013 15:55:54 +0100 Message-ID: <20131029145554.GB28671@doriath.local> References: <20131029113044.GA28039@doriath.local> <526FC58A.6080204@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383058590 4602 80.91.229.3 (29 Oct 2013 14:56:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 14:56:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 15:56:32 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VbAie-0006Sv-AQ for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 15:56:32 +0100 Original-Received: from localhost ([::1]:47621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbAid-00028W-Qr for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 10:56:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbAiJ-00028M-Tf for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 10:56:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbAiB-0003QC-Cu for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 10:56:11 -0400 Original-Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:54387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbAiB-0003Py-5d for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 10:56:03 -0400 Original-Received: by mail-we0-f170.google.com with SMTP id u57so8401016wes.29 for ; Tue, 29 Oct 2013 07:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=eGuHhOM+J61QyV01nDSbUsBaHujH4JFerxTLtRCVxkc=; b=WOEvOfENv6fMMWkQ5rYGe5HTN2Fm2eZye70eiB6JTyslQ1CMKQ55/pLIpbJXcWRuGl 8fUXe54hFv/xzX/bohj7ENGrvT8D6cfzqHK6XW7ni62mrperan2Ps200vyGeVRIn4NoG P76pRWSgfPZwXpR8R8Pbpn/51tpwdqo/x9DYJdy9Fcx/KjowzhOz8x80vMiBwTjBMzNe KRrgdbs8aFTwKvKPgiMVflcF8aZhEzASqHIWd3JeN2KwaKVGY4qIJu7KamL9lzuHPrZI gFYYT1xSm1w3vJh71ce8HJT/SH3jjbzQed7nqj59bjDKbjl+2EMPmCvqmKSluZKxD8H4 R80w== X-Received: by 10.194.19.5 with SMTP id a5mr67285wje.48.1383058561709; Tue, 29 Oct 2013 07:56:01 -0700 (PDT) Original-Received: from doriath (200.Red-83-58-146.dynamicIP.rima-tde.net. [83.58.146.200]) by mx.google.com with ESMTPSA id fb4sm5620775wib.8.2013.10.29.07.56.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Oct 2013 07:56:00 -0700 (PDT) Content-Disposition: inline In-Reply-To: <526FC58A.6080204@easy-emacs.de> X-Operating-System: GNU/Linux (Debian jessie/sid) User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22a X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94245 Archived-At: 29-10-2013, 15:26 (+0100); Andreas R=F6hler escriu: > Am 29.10.2013 12:30, schrieb Ernest Adrogu=E9: > >#!/usr/bin/env python > ># -*- coding: utf-8 -*- > > > >from __future__ import print_function > > > >a =3D 'W=F6rterbuch'.decode('utf8') > >b =3D u'W=F6rterbuch' > > > >print(repr(a)) > >print(repr(b)) >=20 > Works here without the `repr': >=20 > print(a) > print(b) Do you get the same result with C-c C-c as with C-c C-r? Here it's different, print(b) prints `W=C3=B6rterbuch' (C-c C-r) and `W=F6rterbuch' (C-c C-c). Something is wrong.