From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id DA0B9396E42C for ; Thu, 2 Jun 2022 14:33:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DA0B9396E42C Received: by mail-il1-x130.google.com with SMTP id a15so3490714ilq.12 for ; Thu, 02 Jun 2022 07:33:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=fkA1KvEFSXyDweeP0/TQcr95kvew+ocismmo9HXYhuY=; b=P/Dh6Yj9Z0bl6g412OAS5brSSTuICrVQQj2aeImEjLKNP1hUDenLKx+TZtt4MbozVm pvuJnn8R4bSGRuYnLPk6PKhXWV5+BqDqnVV1Dd2T8FVFEAg/7AhFrllYVaVQjDryt5DN cgiACg1gubOvOrSlwT+n3GSwbFCHanLd9rHIgXMZtIcYqoOkW/x7wV0NyYPn9eY+yXYC fbbxUyBkJSrb95p+P8r4iuOMuO6Qng44226K11oMKfBEVYt1GJxkRq5f2bH/vzQd4XLy bH7r/SsTO2bfhiZCpW2AibEa6nJcY/LeMTwhAUnHnPKfVSNAiOcMonjSgw7PAOYGC1om LcrA== X-Gm-Message-State: AOAM533yY5LI9LxkrsOwW8ohEOtRtgq0RdV2/rvEFZG4r+CWXBPkOiq1 4h0clSyh0ZpZApQGMsCyEzDRSMtJkb6Iqw== X-Google-Smtp-Source: ABdhPJwuV+WpVSq9LVFaBKWL6IRDZxVcyxAw/7+w9ggDdQAdTo25zEkFLySvWaVDqFRlNVbf0hdnIw== X-Received: by 2002:a05:6e02:174e:b0:2d3:9d76:71df with SMTP id y14-20020a056e02174e00b002d39d7671dfmr3459333ill.204.1654180385156; Thu, 02 Jun 2022 07:33:05 -0700 (PDT) Received: from murgatroyd (71-211-167-178.hlrn.qwest.net. [71.211.167.178]) by smtp.gmail.com with ESMTPSA id a14-20020a921a0e000000b002d1d8de99e7sm1463696ila.40.2022.06.02.07.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 07:33:04 -0700 (PDT) From: Tom Tromey To: Jon Turney Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] Handle encoding failures in Windows thread names References: <20220421143926.2550856-1-tromey@adacore.com> <6f7e3db5-76f4-e21d-edbd-2cd1993a7bdd@dronecode.org.uk> X-Attribution: Tom Date: Thu, 02 Jun 2022 08:33:02 -0600 In-Reply-To: <6f7e3db5-76f4-e21d-edbd-2cd1993a7bdd@dronecode.org.uk> (Jon Turney's message of "Thu, 2 Jun 2022 15:19:21 +0100") Message-ID: <878rqf3zkx.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2022 14:33:07 -0000 >>>>> "Jon" == Jon Turney writes: Jon> This is probably wrong on Cygwin (as the target encoding should be Jon> Cygwin's conception of the locale, not the Windows codepage). If there's some way for gdb to know the locale of the inferior, I guess we could use that here. I don't have Cygwin and so I can't test it or anything, but if I knew what to do I could try to write a patch for someone else to test. Tom