10 Nov 13:33
Problems with file names containing latin accent characters
From: Tecnonucleo <germanblando <at> gmail.com>
Subject: Problems with file names containing latin accent characters
Newsgroups: gmane.comp.db.metakit
Date: 2007-11-10 12:34:41 GMT
Subject: Problems with file names containing latin accent characters
Newsgroups: gmane.comp.db.metakit
Date: 2007-11-10 12:34:41 GMT
Hello all I've used Metakit for a while, and recently I had some issues with file names containing accent characters, like á or é. 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "metakit" group. To post to this group, send email to metakit <at> googlegroups.com To unsubscribe from this group, send email to metakit-unsubscribe <at> googlegroups.com For more options, visit this group at http://groups.google.com/group/metakit?hl=en -~----------~----~----~----~------~----~------~--~---
RSS Feed