Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Seed me, Seymour" -- a random number generator meets the big green mother from outer space


devel / comp.lang.python / Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

SubjectAuthor
o Re: Strange UnicodeEncodeError in Windows image on Azure DevOps12Jessicasmith34

1
Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

<mailman.939.1668216022.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20306&group=comp.lang.python#20306

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: 12jessic...@gmail.com (12Jessicasmith34)
Newsgroups: comp.lang.python
Subject: Re: Strange UnicodeEncodeError in Windows image on Azure DevOps
and Github
Date: Fri, 11 Nov 2022 19:20:17 -0600
Lines: 16
Message-ID: <mailman.939.1668216022.20444.python-list@python.org>
References: <CAHYhOdEWSXWwt174AoYwZN59R2dbirLAH=-_TkyUnyWE-XUYLg@mail.gmail.com>
<959da7c4-cd04-46ba-8510-33cd1df4fb28@iPhone>
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de UmhEmSMGzExOY7XjsdCmCwy5zQN9Oes2YUotlCwT8rZg==
Return-Path: <12jessicasmith34@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=H4scRENI;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.005
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(e.g.': 0.05;
'subject:Windows': 0.07; 'subject:image': 0.07; 'questions:':
0.09; 'way?': 0.09; '&gt;': 0.14; '1252': 0.16; 'defaults': 0.16;
'legacy': 0.16; 'stdout': 0.16; 'python': 0.16; 'values': 0.17;
'to:addr:python-list': 0.20; 'maybe': 0.22; 'code': 0.23; 'idea':
0.24; "isn't": 0.27; 'background': 0.28; 'assume': 0.32;
'happening': 0.32; 'but': 0.32; 'there': 0.33; 'header:In-Reply-
To:1': 0.34; 'received:google.com': 0.34; 'running': 0.34;
'from:addr:gmail.com': 0.35; 'really': 0.37; 'using': 0.37;
'received:209.85': 0.37; 'way': 0.38; 'could': 0.38;
'received:209': 0.39; 'two': 0.39; 'exact': 0.40; 'process.':
0.65; 'you.': 0.71; 'subject: \n ': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:subject:references:in-reply-to:message-id:to:from:date
:from:to:cc:subject:date:message-id:reply-to;
bh=f3ZiCLRsjkSbWr69u5dcp3X4DfF5dyscEqJWS8MbIj4=;
b=H4scRENIK5uv7JrzqSFobufsMfuYJtXDGwtv+Eysa7kieStD/caYSQkg89HvKGTGYJ
mN6KviG7l0+XMVOfDXHdcm4wsCK8cfpdVBOSX6TVug7z/d/yuOYTOApwPhZ7pN1dLelw
/NQeg9+4GEvkrkAXi62PqAIszEvPy0el8D73xZy/3E17svnUQVGenp0yKbAudGt3vwDR
Z0//aAMfhw2Kv3NAn0yvjwG2JuqlrCRiP6XLF3sS4vekOlLZWoMf1NaRid0OTZC0yAXS
eZ++stVldFDKOd5nz5nPnSm5nVi0b2Me0Tv2iUStvBak5p1tRLzMZ/htmoqP7MhiSjWx
WstQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=mime-version:subject:references:in-reply-to:message-id:to:from:date
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=f3ZiCLRsjkSbWr69u5dcp3X4DfF5dyscEqJWS8MbIj4=;
b=YZ5n99Q1bZXVm5xrTZMI5niZNhH9hQZAkyGlGf6XHhkunhQ5Bf/Bay6a6YLSP68/CP
34HgqFjeNtlpnjfbphe5UTxrysu0M2lQJ+a0gM3eCguJh/janZPlFvMaM/8bCSNG9S+n
lwIL3Higz6dqFq3+SJQK/qhyVCcwLv88qW4X7ohNxVW9yWP7wM59nbzn3X8Bp12n3ezR
6yYEHxT4iHaE96Z+/jofBh4pnCtySgBIWGed0g3CKxZ8EcUyfXdUStXGM2ZfvNMl4HC0
PcHD60/n2g2WZO2gozMiIAGW4gRmdIzoxvy+SUWIgr5GvxWM2oSAshVBudwX1f1NEfdB
yVmg==
X-Gm-Message-State: ANoB5pm+ZlMZtX17rgrVVseHMgzyz/1oH8N+9L98fF5HFjZb8JhxhBGy
pXWjl6zF0Bvcml7SsFCDQcsju2C11ahOzw==
X-Google-Smtp-Source: AA0mqf5o+4nwRtbtsTwTsuqCii5qvQc801GaTU3wH/sLkS2HeK5aCSK6beeL46/kT1CJCZdoJyQDTQ==
X-Received: by 2002:a05:6808:1a12:b0:354:b306:9a6b with SMTP id
bk18-20020a0568081a1200b00354b3069a6bmr2010024oib.212.1668216019133;
Fri, 11 Nov 2022 17:20:19 -0800 (PST)
In-Reply-To: <CACL+1au9Zx8OhDv+evvbMe77cUt-QZzhn1vgBOgnL5mkxjfWsw@mail.gmail.com>
Content-Disposition: inline
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <959da7c4-cd04-46ba-8510-33cd1df4fb28@iPhone>
X-Mailman-Original-References: <CAHYhOdEWSXWwt174AoYwZN59R2dbirLAH=-_TkyUnyWE-XUYLg@mail.gmail.com>
 by: 12Jessicasmith34 - Sat, 12 Nov 2022 01:20 UTC

> If stdout isn't a console (e.g. a pipe), it defaults to using the
process code page (i.e. CP_ACP), such as legacy code page 1252
(extended Latin-1).


First off, really helpful information, thank you. That was the exact background I was missing.


Two questions: any idea why this would be happening in this situation? AFAIK, stdout *is* a console when these images are running the python process. Second - is there a way I can check the locale and code page values that you mentioned? I assume I could call GetACP using ctypes, but maybe there is a simpler way?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor