[Box Backup-dev] Re: [Box Backup] Danish and other special chars
Chris Wilson
boxbackup-dev@fluffy.co.uk
Sat, 4 Feb 2006 19:18:10 +0000 (GMT)
Hi Gary,
> According to documentation for VS2K5, _tprintf evalues to printf for
> both SBCS and MBCS, and to wprintf for UNICODE.
>
> The question now is whether printf, having taken MBCS, properly outputs
> the (special) double-byte sequences.
I really doubt it - how would the standard printf() know whether its
argument was in MBCS or UTF-8 or any other encoding? My guess is that it
requires the argument to be in platform default encoding (CP_ACP).
I'm happy to make bbackupquery use wprintf() on Windows with multibyte
strings, without changing how it works on other platforms, and I'm working
on that now.
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |