Re: some text in webpage with .txt extension is displayed as garbage

Thomas Dickey <[email protected]> Sun, 3 Aug 2025 13:43:52 -0400
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On Wed, Apr 02, 2025 at 06:00:24PM +0000, జిందం వాఐి via Lynx-dev wrote:
> * Steps to reproduce on lynx 2.8.9rel.1-8:
> visit: https://jivani.neocities.org/10.4102_lit.v40i1.1521.txt
> 
> * it displays few text as garbage
> instead of alphabet!
> 
> * there is no issue on
> privacy browser 3.19.3
> 
> * i am complaining here also,
> earlier i filed on mozilla bugzilla
> also [ 1 ]
> 
> * please note i am using lynx
> on termux

The build-script looks ok:

https://github.com/termux/termux-packages/blob/cd3abe8de/packages/lynx/build.sh

This is probably another instance of

.h2 LOCALE_CHARSET
# LOCALE_CHARSET overrides CHARACTER_SET if true, using the current locale to
# lookup a MIME name that corresponds, and use that as the display charset.
#
# It also modifies the default value for ASSUME_CHARSET; it does not override
# that setting.
#
# Note that while nl_langinfo(CODESET) itself is standardized, the return
# values and their relationship to the locale value is not.  GNU libiconv
# happens to give useful values, but other implementations are not guaranteed
# to do this.
#LOCALE_CHARSET:FALSE

(which is user-configurable)

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmiPn9QACgkQzCr0RyFn
vgOIcAwA6PLZoRmsLMWHELEqBHywI30+kmoxRY8u69OPQoXK8HbubLLVLRKNrOZ7
fdLeL7qwn0D2wd9mgrU6p+3MtAAC9raMfhCjaVBjXmKjZcD7bNiUT8thxGiFfpRm
dk09GT9Kk0GFdEVH6SnUz2OJ/9JWYGo5DlXk/ObW9DMzoljKU1BkTTWEWFy+6DII
jRjyv1hPZKaFoQTYXTZ7tKspCDAEWRahLVk0ZU86uPRJ2Y2q9VzZ5v6U2kOL1kPw
VCtmBGHLTTl3pEb2l+JPp48416GJGlOWy47bHpz1Q0hlXTlEiV7Ns0lHKoO0V1Jc
em+O8EsoOo3beoaISPif5ozxd5RftPHYUZwcpOEpN88l3KqxI9LSuM0SQBeWdBew
WHFzHcr60MwGIo7GoafWD4aSUhBfzG4sAPA4DyQeehkgByuwqL6IgZUQHNMxccen
d+apUadxB+yaCBXH4dM5Prwwgn5P1qsOz3ECNfISpIocqZWuTYI/5W3qYslPi2Ln
1Ksn7x97
=BmmB
-----END PGP SIGNATURE-----