tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: UTF-8 capable fmt(1)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 09.01.2016 15:30, Joerg Sonnenberger wrote:
> On Sat, Jan 09, 2016 at 02:57:27PM +0100, Kamil Rytarowski wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>> 
>> On 09.01.2016 02:46, Thomas Klausner wrote:
>>> On Sat, Jan 09, 2016 at 02:36:07AM +0100, Kamil Rytarowski
>>> wrote:
>>>> 1. I have an impression that it's basically moving the focus 
>>>> from ASCII to narrowed-down UTF-8, while there are plenty of 
>>>> other locales and character systems.
>>> 
>>> It uses standard headers like locale.h, wchar.h and wctype.h,
>>> and uses mbtowc(). What is the problem with these functions?
>>> 
>> 
>> Here is a short explanation by libunistring developers:
>> 
>> http://www.gnu.org/software/libunistring/manual/libunistring.html#The
- -wchar_005ft-mess
>
>> 
> ...and of course, they are mixing stupid things with not
> understanding things. Narrowing i18n support down to Unicode is
> still not a valid approach and ignorant. We should investigate how
> to make wchar_t locale independent. That's not the same as making
> wchar_t UCS4. Doing that is part of the necessary libc work.
> 

Please list necessary steps to make it work properly.

What would represent exactly wchar_t and what would be the underlaying
type? I think we are also limited with wint_t passed as an argument to
isw*() functions.

I noted that something similar is already done in editline(3):
/usr/src/lib/libedit/chartype.h
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWkVIVAAoJEEuzCOmwLnZsOSoP/33rz0Lm/XEtiM6klOU7CL36
xQKzHrENuwZb6gRQE+PK3HDUvU3sMV/imFKxdwumNQ9UpcjZVL1Gh/lAebmsd81y
flbUbH1iUhJAwxNpGJrzF4TjoQV3UAFZznK/VZckYg3jwcx6f5X8u9meJqZaMjtG
D+e/TuyFj4uc9FOrbPQTzf+K0/PkFbg1wMLFrFk9PWpok0k8W7TxrgUE5U2VNt9x
urxMVdwNPL5BYtuaJWqoH6pYPMB2Ymi3uviklWTsK32o/4PoPd9HXJtzIDaEczS4
gU8gc4a0ZqewgJJZEkL817tn59F7NHQeJv2f63jpRm2v1VRR0b5FFtJT7es/QhGq
NkGxrAVPYqh2g+qXcOrLu5pDXX8rTWPL3gFXghYaAEZ96REsVGOZYzPWrZX8t1Sv
c5WWgZC2pqR/fH4NbbLMtfP0NslYA7tcbzT6j1kHV9JbgyAJLPn6O4/opS3y0E1p
r+p3HEAPMY4mn5WNxyCfIg5Q7+UI5jBA8uw59AP64ESj+qfjbldmf2HT4L9/zHSQ
UNwwOCzaLVGS9ULphwxXp2IBwoeBSPdnpF8Ryb13mxsHjuS1g4oasyPnsF1fT8P8
6ve0EbJixZSmSwbagWipLYIEKcHZ1s58pVqXRcjoAgPmaLzxvKpaSgQalw1RC0Wx
eGCej0ilEVFR+cBo5Xsp
=KXfw
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index