Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Today's discovery: ugrep
- Date: Tue, 8 Oct 2024 21:14:50 +0100
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] Today's discovery: ugrep
- References: <605e6910-5dfd-442b-b4b7-d5876bcb498f@dcook.org> <b67330c0-74f8-47a3-91e5-db3cd4ecff87@app.fastmail.com> <CAKXLc7emTX2tyFJj5u6uLhRTyu+kLHFPgix5fKoCB_=mRZjkAA@mail.gmail.com>
grep was giving me no hits on a kanji string I knew was in my directory tree at least once. Then it dawned: my terminal is in UTF8, but the files I'm searching are in UTF-16.Good catch! But I'll definitely fix that fs naming (rather that switching to UTF-16, LE or BE?), before some other weirdness happens.You are thinking of `find` not `grep`, Kalin!But I do actually get these UTF-16 files in a zip file with Shift-JIS filename encoding. Yes, I suspect they are not using Linux ;-)`unzip -O shift-jis ...` fixes that.But for contents, I'd rather keep files in the original encoding where possible. For instance, troubleshooting has discovered a UTF-8 BOM at the start of a UTF-16 file before.Darren
- References:
- [tlug] Today's discovery: ugrep
- From: Darren Cook
- Re: [tlug] Today's discovery: ugrep
- From: David J Iannucci
- Re: [tlug] Today's discovery: ugrep
- From: Kalin KOZHUHAROV
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Today's discovery: ugrep
- Next by Date: Re: [tlug] [announcement] TLUG Nomikai on October 11
- Previous by thread: Re: [tlug] Today's discovery: ugrep
- Next by thread: Re: [tlug] Slightly offtopic: Japan power outlet with consuption meter
- Index(es):