Qian Hong fracting@gmail.com wrote:
This patch solve the wine side of Bug 32136.
Why is this needed? wine.inf.in doesn't contain non ASCII strings.
Hi Dmitry,
On Tue, Nov 6, 2012 at 12:44 PM, Dmitry Timoshkov dmitry@baikal.ru wrote:
Qian Hong fracting@gmail.com wrote:
This patch solve the wine side of Bug 32136.
Why is this needed? wine.inf.in doesn't contain non ASCII strings.
Currently wine.inf.in does not contain non ASCII strings, but if we want to solve Bug 32136, as Comment 4, we need to add some non ASCII strings to wine.inf.in, such as: --- snip --- HKCU,Software\Wine\Fonts\Replacements,"宋体",,"WenQuanYi Micro Hei" --- snip ---
My idea is leaving these work for the distribution folks, however, I think it is better to add a UTF8 BOM header in the Wine side, or the distribution patch will be strange and ugly.
Thanks for any suggestions!
-- Dmitry.
-- Regards, Qian Hong
- Sent from Ubuntu http://www.ubuntu.com/
Qian Hong fracting@gmail.com wrote:
Currently wine.inf.in does not contain non ASCII strings, but if we want to solve Bug 32136, as Comment 4, we need to add some non ASCII strings to wine.inf.in, such as: --- snip --- HKCU,Software\Wine\Fonts\Replacements,"宋体",,"WenQuanYi Micro Hei" --- snip ---
My idea is leaving these work for the distribution folks, however, I think it is better to add a UTF8 BOM header in the Wine side, or the distribution patch will be strange and ugly.
It should be possible to specify a not localized font name. In general, wine.inf follows Windows format of .inf files, you should investigate how unicode is supposed to work inside of .inf files.
Hi Dmitry,
On Tue, Nov 6, 2012 at 3:59 PM, Dmitry Timoshkov dmitry@baikal.ru wrote:
It should be possible to specify a not localized font name. In general, wine.inf follows Windows format of .inf files, you should investigate how unicode is supposed to work inside of .inf files.
Thanks for advice! Unfortunately I'm worrying about my google skills... I search for storing unicode string in .inf files / .reg files, most related samples are covered in [1], but none of them match my purpose.
What I need is something like: HKCU,Software\Wine\Fonts\Replacements,"\x5b8b\x4f53","WenQuanYi Micro Hei" But I can't found anyway like that which works. I also check the code in dlls/setupapi, there seems no code related to decode similar strings into unicode.
Could you point out if I miss something? Any sample or reference is great appreciated!
PS: The artical[1] referers to two books: Inside the Registry for Windows 95 by Günter Born and The Windows 98 Registry by John Woram, but I can't get them right now.
[1] http://franck.kiechel.free.fr/dbr_eng/RegInf.htm
-- Regards, Qian Hong
- Sent from Ubuntu http://www.ubuntu.com/