The Dink Network

Reply to Re: Hanging hags

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 13th 2012, 03:11 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Just tried it on my 1.08 installation with a testfile encoded as utf-16. Didn't work either. Looking at the 1.08 source code, there's nothing weird happening. But: the strlen() function (and presumably all other string functions) in the C library that Dink is compiled with in Windows looks at the system's locale, and reads files as if that's the file locale.

So: reading utf-16 encoded files on an utf-16 Windows system? No worries. Using utf-16 encoded files on any other system? Nope.

(which makes me wonder why reading ANSI-encoded files on an utf-16 Windows works, as evidently scratcher is able to play other people's D-Mods, because reading ANSI files as if it was utf-16 results in utter garbage, but that's probably a Windows backward-compatible thing)