[Box Backup-dev] Re: [Box Backup] Danish and other special chars

Ben Summers boxbackup-dev at fluffy.co.uk
Sun Feb 5 17:29:27 GMT 2006


On 4 Feb 2006, at 19:14, Gary wrote:

>> an array of bytes. The encoding used to store international  
>> characters in
>> these byte arrays is probably system-dependent. I believe that
>
> Well, so for things to work properly, the backup client o/s has to  
> be the same as restore client
> o/s. No cross-platform restores.

I don't think this is correct. Cross platform restores are allowed,  
and should work. There might be issues with character set encodings,  
but apart from that, it's portable. Even endian issues are carefully  
taken into account.

We should keep on supporting cross-platform restores.


>
>> Since when is MBCS ready for printf? I thought printf() could only  
>> take an
>> ASCII byte array? Perhaps there is a unicode equivalent like  
>> _wprintf that
>> we can use on Windows?
>
> 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.

These platforms issues should be isolated in the client -- as I note  
Chris is doing.

Internally, I think standardising on UTF-8 is the way to go. It seems  
to be the approach taken by the major OS vendors for POSIX access to  
filing systems, and is sensible.

Ben







More information about the Boxbackup-dev mailing list