On Tue, Apr 28, 2009 at 1:39 PM, Greg Spencer <[email protected]> wrote:

> 1) I'd like to add some explicit routines for converting to/from UTF8 and
> UTF16.  While it's nice (and important) that FilePath uses the platform's
> native string, we've found that many third party libraries have made other
> assumptions, where they always expect UTF8 (char) or UTF16 (wchar_t) paths
> regardless of platform, and converting a FilePath to and from those forms is
> a platform-dependent exercise which should be centralized into the class
> (i.e. adding "ToUTF8" and "ToWide" functions to the class, and explicit
> constructors that take each type).


I'm pretty strongly against this for the same reasons as Evan.  I think
consumers who need to convert should be doing the conversion using their own
routines (e.g. Chrome uses ones in our base/ module).

PK

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to