Turkish dotted and dotless I

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
In Turkish and some other languages, there are upper-case and
lower-case variants of both dotted i/İ and dotless ı/I.  If I
understand correctly, Turkish users expect case-insensitive
comparisons to treat "i" as equivalent to "İ", and "ı" as
equivalent to "I".  ELinks does case-insensitive comparisons
in at least these situations:

- searching for text in a document
- comparing a keystroke to an HTML accesskey attribute
- comparing a keystroke to the accelerator key of a BFU widget or
  menu item

Currently, these comparisons try to use towupper() or towlower(),
which in turn use the locale selected for LC_CTYPE.  Because
init_osdep() calls setlocale(LC_ALL, ""), the locale is selected
based on environment variables on POSIX, or based on the user
default ANSI code page on Windows.  (Because all the comparisons
occur in the master ELinks process, the locale environment
variables of slave ELinks processes do not affect them.)

Is this the appropriate behaviour, or should ELinks enable the
Turkish case mappings whenever the user selects Turkish from the
language menu, regardless of environment variables?

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFE8WybHm9IGt60eMgRAtMQAKDbUu6UegNmwff8vVJ4rUDgOuV2gwCgp3xZ
Hb9gm+S1d0kHLmimSfdl74w=
=Gwzz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.