Re: Problems with file names containing latin accent characters
Riccardo Cohen <[email protected]> Mon, 12 Nov 2007 11:31:51 +0100
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Organization | Articque |
| Message-ID | <[email protected]> |
I don't think it depends on windows install. Germ=E1n Blando wrote: > Hi Riccardo >=20 > The Win XP where I tested my application has the standard configuration,= =20 > i.e. English language. > I can do the test in a spanish installation too. I will do it and=20 > comment the results later. >=20 > Bye. German. >=20 > Riccardo Cohen escribi=F3: >> I noticed also that on windows, metakit needs utf8 file names. But did=20 >> not test on other plateforms.I supposed all plateforms need utf8 ? >> >> Anyway I rather changed my code to give utf8 to metakit. Any precision=20 >> would be appreciated. >> Thanks >> >> Tecnonucleo wrote: >> =20 >>> Hello all >>> >>> I've used Metakit for a while, and recently I had some issues with >>> file names containing accent characters, like =E1 or =E9. It only occurs >>> in Windows XP. In Linux all works ok. >>> But in Windows, when the file name had latin accent characters, >>> Metakit suppress them and thus it tried to open a non existing file. >>> I debug into Metakit source code and I found that the character >>> missing happened in this line: >>> >>> MultiByteToWideChar(CP_UTF8, 0, fname_, - 1, wName, MAX_PATH); >>> >>> I'm not an expert in Win32 API, but after some googling I decided to >>> change the CP_UTF8 parameter for CP_ACP. And then all began to work ok >>> as in Linux. The new version of the previous line now looks like that: >>> >>> MultiByteToWideChar(CP_ACP, 0, fname_, - 1, wName, MAX_PATH); >>> >>> I'm not sure if it make sense to change the Metakit sources that way, >>> but in any case I want to share this issue and maybe get some feedback >>> about the patch I applied. >>> >>> Greetings, German >>> >>> >>> =20 >> >> =20 >=20 > --=20 > Saludos, Germ=E1n Blando >=20 > Contable IVA - Liquidaci=F3n de Iva para Estudios Contables > http://www.interfase-soft.com.ar/contableiva/ >=20 > Ubuntu OS > http://www.ubuntu.com/ >=20 --=20 Tr=E8s cordialement, Riccardo Cohen ------------------------------------------- Articque http://www.articque.com 149 av G=E9n=E9ral de Gaulle 37230 Fondettes - France tel : 02-47-49-90-49 fax : 02-47-49-91-49 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "metakit" group.= To post to this group, send email to [email protected] To unsubscribe from this group, send email to metakit-unsubscribe@googlegrou= ps.com For more options, visit this group at http://groups.google.com/group/metakit= ?hl=3Den -~----------~----~----~----~------~----~------~--~---