Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Whatever it is, I fear Greeks even when they bring gifts. -- Publius Vergilius Maro (Virgil)


aus+uk / uk.comp.os.linux / Re: while loop taking input from file via iconv

SubjectAuthor
o Re: while loop taking input from file via iconvJasen Betts

1
Re: while loop taking input from file via iconv

<2145476377@f1.n221.z2.fidonet.fi>

  copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=374&group=uk.comp.os.linux#374

  copy link   Newsgroups: uk.comp.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!jHXdSDKPKExtdJMCjskdCQ.user.46.165.242.75.POSTED!not-for-mail
From: Jasen.Be...@f1.n221.z2.fidonet.fi (Jasen Betts)
Newsgroups: uk.comp.os.linux
Subject: Re: while loop taking input from file via iconv
Date: Sat, 14 Aug 2021 03:00:31 +0200
Organization: rbb soupgate
Message-ID: <2145476377@f1.n221.z2.fidonet.fi>
References: <559785606@f0.n0.z0.fidonet.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="56952"; posting-host="jHXdSDKPKExtdJMCjskdCQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Comment-To: All
X-Notice: Filtered by postfilter v. 0.9.2
X-MailConverter: SoupGate-OS/2 v1.20
 by: Jasen Betts - Sat, 14 Aug 2021 01:00 UTC

On 2021-08-14, Spiros Bousbouras <spibou@gmail.com> wrote:
> On Fri, 13 Aug 2021 21:37:38 -0000 (UTC)
> Jasen Betts <usenet@revmaps.no-ip.org> wrote:
>> On 2021-08-13, Java Jive <java@evij.com.invalid> wrote:
>>
>> > done < "${DATA}"
>> >
>> > ... and this works fine for all but two lines in the data file, which
>> > contain accented characters. A file erroneously named with an e acute
>> > needs to be renamed to have an e grave, and a filename containing an e
>> > umlaut needs to be moved to a new location and given a new name.
>>
>> > If I replace the 'done' line with ...
>> >
>> > done < iconv -f 'CP1252' -t 'UTF-8' "${DATA}"
>> >
>>
>> you want this:
>>
>> done <( iconv -f 'CP1252' -t 'UTF-8' "${DATA}" )
>
> I think it should be
>
> done < <( iconv -f 'CP1252' -t 'UTF-8' "${DATA}" )

You're right!

--
Jasen.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor