It is currently April 23rd, 2024, 3:27 pm

[BUG] io.open unable to open file path with non-utf8 characters

Report bugs with the Rainmeter application and suggest features.
User avatar
Jax
Posts: 104
Joined: June 7th, 2021, 11:46 am

[BUG] io.open unable to open file path with non-utf8 characters

Post by Jax »

Code: Select all

io.open()
is unable to open files with paths which contain characters that isn't your standard English characters like 测试

This would prevent generation lua scripts to work with users who has non-English user names.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [BUG] io.open unable to open file path with non-utf8 characters

Post by jsmorley »

Jax wrote: February 4th, 2022, 1:06 pm

Code: Select all

io.open()
is unable to open files with paths which contain characters that isn't your standard English characters like 测试

This would prevent generation lua scripts to work with users who has non-English user names.
Lua just does not properly handle multi-byte unicode characters.
User avatar
Jax
Posts: 104
Joined: June 7th, 2021, 11:46 am

Re: [BUG] io.open unable to open file path with non-utf8 characters

Post by Jax »

I see... that's unfortunate :confused: