From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 973D81F619 for ; Wed, 11 Mar 2020 20:17:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387435AbgCKURS (ORCPT ); Wed, 11 Mar 2020 16:17:18 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:53752 "EHLO pb-smtp20.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731097AbgCKURS (ORCPT ); Wed, 11 Mar 2020 16:17:18 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 7EF7ABD677; Wed, 11 Mar 2020 16:17:16 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=0nt+u1mEnW8EbZ4deVbhRcRnJNc=; b=kHaj+E 7889xKSzNhXXKbvSNeu3J9vsgnaxoDJlQV/ULUcONVQI2heasMnc2wL+TjFh1BzU y83GC/W9lxa6wrVkKaVbiCrAJEvvK/SLY24j3L2f1cNWNbZfN2P6x86ysS9rXpbd v7q1tU5dy0xc+toCDmCv4Ps4zjEPr+R1I2lzM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=uMjKEhYoXAS/Z9DQSBUZ1jNxtGfdOr8n k7pPc9E4k8z4b6ne4LvqaMNpW4mLiLMyOQvrTcbkiOdxHDord5UgE6X07CL/icoz /M7lbGgC2SFBUOtWZKbav+q/B9KRo9sledYL+OF7XJ+RTBe9MjEFITMmJN7ntZSG 1NlDmujURkI= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 766C8BD676; Wed, 11 Mar 2020 16:17:16 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.74.119.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id BCA78BD673; Wed, 11 Mar 2020 16:17:13 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: "Johannes Schindelin via GitGitGadget" Cc: git@vger.kernel.org, Johannes Schindelin , Pratyush Yadav , Luke Bonanomi Subject: Re: [PATCH] git-gui--askpass: coerce answers to UTF-8 on Windows References: Date: Wed, 11 Mar 2020 13:17:12 -0700 In-Reply-To: (Johannes Schindelin via GitGitGadget's message of "Wed, 11 Mar 2020 19:24:36 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 4BB9AEC2-63D5-11EA-847D-B0405B776F7B-77302942!pb-smtp20.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org "Johannes Schindelin via GitGitGadget" writes: > diff --git a/git-gui--askpass b/git-gui--askpass > index 4277f30c411..b0704e6d91e 100755 > --- a/git-gui--askpass > +++ b/git-gui--askpass > @@ -56,6 +56,11 @@ proc finish {} { > } > } > > + # On Windows, force the encoding to UTF-8: it is what `git.exe` expects > + if {$::tcl_platform(platform) eq {windows}} { The indentation looks funny here. Dedent one level? > + set ::answer [encoding convertto utf-8 $::answer] > + } Looks correct (assuming that $::answer we got is Unicode "string", and I think that is a sane assumpton as it came directly from a textvariable bound to an entry widget). > puts $::answer > set ::rc 0 > } > > base-commit: 63a58457e094c9c9bbf562b872009d32f1f88133