+#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED
+ strlcpy(cpath, __kCFCharacterSetDir, MAXPATHLEN);
+#elif DEPLOYMENT_TARGET_WINDOWS
+ wchar_t frameworkPath[MAXPATHLEN];
+ _CFGetFrameworkPath(frameworkPath, MAXPATHLEN);
+ wcsncpy(wpath, frameworkPath, MAXPATHLEN);
+ wcsncat(wpath, L"\\CoreFoundation.resources\\", MAXPATHLEN - wcslen(wpath));