From patchwork Wed Feb 21 14:17:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Axtens X-Patchwork-Id: 876136 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zmgNR4h9Tz9rxp for ; Thu, 22 Feb 2018 01:48:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b="QCIkT1xN"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3zmgNQ4Y0NzDr6q for ; Thu, 22 Feb 2018 01:48:54 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b="QCIkT1xN"; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=axtens.net (client-ip=2607:f8b0:400e:c00::22f; helo=mail-pf0-x22f.google.com; envelope-from=dja@axtens.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b="QCIkT1xN"; dkim-atps=neutral Received: from mail-pf0-x22f.google.com (mail-pf0-x22f.google.com [IPv6:2607:f8b0:400e:c00::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zmfhL4C8dzDrLQ for ; Thu, 22 Feb 2018 01:17:38 +1100 (AEDT) Received: by mail-pf0-x22f.google.com with SMTP id c143so697978pfb.6 for ; Wed, 21 Feb 2018 06:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YYNoqlrXxF8Y24qeh+FVvpnyYnNo8opVT4NnFPW4IvM=; b=QCIkT1xNZmXnnvd032NU8u97t2GbFoCvT22L0UM5mdRhkpx0L8B/B94uG//3Z1BDnW hJDeqHq9Co7txj2MIk4m/BPixGdVHjoIEeqjJDcqcU+W27XuWfTMW0YaaKing/QSBH7N KbGtKdNCXS60jWAxiwohvkTQMO611EJg+vcAo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YYNoqlrXxF8Y24qeh+FVvpnyYnNo8opVT4NnFPW4IvM=; b=K3RItbUWgmsh49K9pUdhMGPcTdR9Rkc0WeLe9bSNIqbLdZtXVIWWitvNvVBDid5/OF aOb4fxkm0ux4UmqYIWheuKlqvT7A4XhJ+JlmqPL66fAulWcabeqsOqfAU3Uw+T9i5hiy JkVdckYksAy/OoJ6h0RJLZb4vUvgm6ojJkoqPceBoTnUvGQwPwuRXNUhniBE6qhEQosJ LIeB05JUmG0Urr5+utzSLnDIWcSEG4BhDhGvqzDnFuQXzdvn3F9XUItkEI6nLFz38RUv ppE1Ec7uKCkAthTumv17ajvs3kWUAPrwH24yRsJdN7y78HZ/BAqQE8rcanSpilHBGRse UlWg== X-Gm-Message-State: APf1xPAXYoWLXIRm9D8LBLR69d9uaWGPZT/Zf67Ctb4CSU+aThUM1Cgp 0CfBdfEnXNrL5lpmNTVltZVFr5klkqQ= X-Google-Smtp-Source: AH8x227cYfCl+1W3DQzVLNvgiBCg4FCdhTIGvUFgKD3nug0kGtVDobVlsugBWG2kPjDcV+z5BdrO9w== X-Received: by 10.101.101.83 with SMTP id a19mr2912372pgw.192.1519222656606; Wed, 21 Feb 2018 06:17:36 -0800 (PST) Received: from linkitivity.iinet.net.au (124-171-212-101.dyn.iinet.net.au. [124.171.212.101]) by smtp.gmail.com with ESMTPSA id w63sm14102667pgb.80.2018.02.21.06.17.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 06:17:35 -0800 (PST) From: Daniel Axtens To: patchwork@lists.ozlabs.org Subject: [PATCH 1/9] tools/docker: assume terminal supports utf-8 Date: Thu, 22 Feb 2018 01:17:08 +1100 Message-Id: <20180221141716.10908-2-dja@axtens.net> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180221141716.10908-1-dja@axtens.net> References: <20180221141716.10908-1-dja@axtens.net> X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , Andrew Donnellan MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Set PYTHONIOENCODING to UTF-8, which allows Python3 to print UTF-8 directly to the terminal (to a pipe or shell-redirected file) rather than throwing an error. Signed-off-by: Daniel Axtens Reviewed-by: Andrew Donnellan --- tools/docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index eb6d35d82528..2154ca7e67bf 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -10,6 +10,7 @@ ENV db_pass password ENV DJANGO_SETTINGS_MODULE patchwork.settings.dev ENV DEBIAN_FRONTEND noninteractive ENV PYTHONUNBUFFERED 1 +ENV PYTHONIOENCODING UTF-8 # System # trusty and findutils is for python3.4