lua-users home
lua-l archive

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


> On Oct 24, 2018, at 22:11, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>
> Op Do., 25 Okt. 2018 om 03:58 het Gé Weijers <ge@weijers.org> geskryf:
>>
>> On my MacOS machine the following character codes match '%s':
>>
>> "C" locale: 9 10 11 12 13 32
>>
>> "en_US.UTF-8" locale: 9 10 11 12 13 32 133 160
>>
>> 133 == NEXT LINE (NEL)
>> 160 == NO-BREAK SPACE (NBSP)
>
> Thanks to you and Egor. Egor's I understand: it is an 8-bit character
> set. I find your example a little surprising, though. It's not that
> way on Ubuntu. Are you using Lua 5.3? Surely single characters in the
> range 128-255 are not legal UTF-8?
>

I’m using 5.3. Different libc I guess.