Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKtOV-0006wB-4Q for pgadmin-hackers@arkaria.postgresql.org; Wed, 06 Jul 2016 20:26:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bKtOU-0007xj-Nv for pgadmin-hackers@arkaria.postgresql.org; Wed, 06 Jul 2016 20:26:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bKrz0-0004qc-FP for pgadmin-hackers@postgresql.org; Wed, 06 Jul 2016 18:55:38 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bKryx-0003yZ-SG for pgadmin-hackers@postgresql.org; Wed, 06 Jul 2016 18:55:37 +0000 Received: by mail-wm0-x235.google.com with SMTP id r201so4476426wme.1 for ; Wed, 06 Jul 2016 11:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version; bh=plc6/woO4CRFpGVk+Zf87DXMyWzzGM84GGpmc/e+SGU=; b=fa4FRAVVW2m3gyWVGbMbqkODjxT2x/Yl8jcvY+mpCIOmFNnTFcCUhjnbeXtiTsb1/3 LSS9owVI7uCsrarBmzezPjGg4E7HmkkH1VRofHMZNMfE5ed7cDygFMJzxGHWAtgPQkgw +JNGQx3/A5XJpFpcar8gRx20r6qX3OPPGbXmn9ZVRBh3jLLLn1RYni9DfXosc5B112kJ NvH1neafU2IdKC4RfCtqbYeznApcU4irc29mNS2dYL7/GqLSPzf9OTp2TbMI+BVj2tMr nwLZ3OXNw2AzetSlsQPq8b1Igbz1kkpHNul0Kbp8xre0F8tzSgcms+L/geKrfmS5tIn+ ApdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=plc6/woO4CRFpGVk+Zf87DXMyWzzGM84GGpmc/e+SGU=; b=FnCrN+7d80zw3gXxui3QS8JfpajqhMhQOiRHQyqVkZLWZZDkI29w7r6pET+DT/Kb5U HBEsv3ci364R6yEtqK5+ioB9gsn+1ESh1NpQdW9TLl6i/wzlO7yOtfoQ8+YNCBs+30BU KSUE/bJnTF9NLIy1LYksy9PHmx/28QsuuV3EXTAreEFEECEYPWZGwv2OvuTEdSGPX75N OO6dbq9bRRwW64zjqTZ+rErc4XKMJICvc/e+pC9DBRyc6UoaCvtjprERV2cfSugyyX8P Bxwd6g7pR51oPemqCfMWPL/TNNizZgUKPoFgxYmsJCHf063oyuSGBHH1e/W1Aeapt5TR nJSQ== X-Gm-Message-State: ALyK8tKPQtNRkx/mYXHmjarg33Df1dUb/+qBPN1rWpsVEMQ9FtA13vngMFbWWs9/3Q02SQ== X-Received: by 10.194.110.234 with SMTP id id10mr21908123wjb.17.1467831334014; Wed, 06 Jul 2016 11:55:34 -0700 (PDT) Received: from [0.0.0.0] (tor-exit.rommelbak.nl. [91.228.151.52]) by smtp.gmail.com with ESMTPSA id m5sm739396wmm.10.2016.07.06.11.55.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jul 2016 11:55:32 -0700 (PDT) To: pgadmin-hackers@postgresql.org From: "Magnun Leno (Pessoal)" Subject: [Patch] Fix Unicode in errmsg Message-ID: <2048fa7e-7563-3edd-db2c-d58b97b98bee@gmail.com> Date: Wed, 6 Jul 2016 15:55:27 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------FD573CD170DE37935995B79F" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------FD573CD170DE37935995B79F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi All, Just a small patch to fix server addition/connection errors when using non-ascii languages (pt_BR in my case). I haven't delved enough into the codebase to be sure, but there might be more occurrences of errmsg that need decoding from ASCII to UTF-8. Is there any plans to port PgAdmin4 to Python3, since Python 2 will only be maintained until 2020? Python 3 support was added in Flask 0.10 and, as mentioned in the Flask Docs, "Most libraries and Flask extensions have been ported by now and using Flask with Python 3 is generally a smooth ride.". Thanks for this amazing piece of software. -- Magnun Leno --------------FD573CD170DE37935995B79F Content-Type: application/x-bzip; name="fix_unicode_pgadmin4.patch.tar.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="fix_unicode_pgadmin4.patch.tar.bz2" QlpoNjFBWSZTWe3RyVYAAYL/kNp2IQBI7//3b9fNiv/33+QEAAAIQAJq53OB zAkoQRk01D0aMp6KPUeoep6TPVManqNNA08U09R6antKCUknkZGgFHppDRkD QGgAAAAAaETRJ5TTQ00aANGhkAAAAGgMQAJJFTzUaEZNppA8o0DIGmg0yAAA aDRsPDBxlYEcACxvBtcggTkP49WBGVj7aWDKed84P23NWzWwPiZCBKVjBy0I ZIBAIHqRSkTDSeOLYH4oYszbX8sn5Ntjt1JcN+qPz4q27zoeKbT9GL+0G+KD QZHUY47c9VzPOYCMkTFZq+AdEQv3spCqNHtOe4+gumm2iETMRBKPyatvYuEv LYddrfCJJjQRGh6IIejI8aveCyMGNopLecdy5QktHRCgGTQkYES7ILpEBUQO AiqJREikMx1CzlHDLKyJQ7OVcZY2RpefO7SVbfmY8q3GyDp7YMZcoswPhGQl MEc1M6y7JJl5dCxRHDEp31G3gvqt2l7NZFZ53UjKh2MMY+dfjt1EUEHpZxdC fl4MxIao/KsgWki1utmEafqtFKNaGQIciBp3TWjnqyDWe7tF04zaw8Lssek0 ope6KryIRl3N67MKM/MYVciXCMZ1t76hpyXXEx45wLS+PoxCgnRLloPfzDz6 70crSzJwle8pJv9fXG3oQ1Il3bmjkPEIMBTAyKok3S/h6+YW3JYkRipd01fT uiDOiGc+A0sNl6HqJuWsWXFIh6cvsvXUa4q+qi8MVOVlC2aN8mAUyI1CSMOc lbZwyKhZie+kFgzVlBrlQdhpBuhCIRT1+covze4sKKLVpEijQ9wglCrOyJyZ GoinAEqBzLhU1CpCJZWgzdoQrrgQpwoTTEagkzRYS3cq9AhOwa5ThpSxbyw1 /6MJlzITW5PglQCgrB04OQXUKyKqQ7R4N2xP8XckU4UJDt0clWA= --------------FD573CD170DE37935995B79F Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers --------------FD573CD170DE37935995B79F--