X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D5D64385803F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tlinx.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cygwin AT tlinx DOT org Message-ID: <600F5144.1050407@tlinx.org> Date: Mon, 25 Jan 2021 15:16:20 -0800 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Ariel Burbaickij Subject: Re: switching to any other than English keyboard layout is not handled correctly anymore on the prompt at minimum References: <5814fb4b-0074-6e98-ed1a-a55cd899e664 AT SystematicSw DOT ab DOT ca> <39a7025c-4a90-2211-ae58-8e0f8fb17aaa AT SystematicSw DOT ab DOT ca> In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 10PNID4g015241 On 2021/01/25 14:20, Ariel Burbaickij via Cygwin wrote: > and this is what I get upon attempt to submit > little sweet ö: > $(__fzf_cd__)Ignoring redcarpet-3.4.0 because its extensions are not > built. ... > 1: from /usr/bin/fzf:929:in `get_input' > /usr/bin/fzf:929:in `ord': invalid byte sequence in UTF-8 (ArgumentError) > $ > and I mean what I say, pressing ö immediately leads to it, no tricks, no > custom builds, no debugs enabled, no nothing. > --- Remember in my first post, I said that the codes you included were not valid UTF-8. It sounds like your program wants UTF-8, but your keyboard is putting out latin1. Did you download that program I mentioned? In there you can select the 'o' with diaeresis then copy/paste it into your program. The character you are inserting into your program isn't encoded in UTF-8, so I'm pretty sure that your keyboard isn't producing UTF-8 encoding. You mention that it does work after you restart your terminal. Setting in locale don't take effect in the current terminal, but in future ones that you start. So it is a good idea to restart your terminal after you change locale. I assume the error you are showing is from a window that wasn't restarted after your locale was changed? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple