Gnucash 2.6.x History with Chinese Full Path

Chenxiong Qi qcxhome at gmail.com
Wed Nov 5 00:11:25 EST 2014


On Wed, Nov 5, 2014 at 11:04 AM,  <chihchieh.sun at innolux.com> wrote:
>
>
> On Nov 4, 2014, at 7:17 AM, Chenxiong Qi <qcxhome at gmail.com> wrote:
>
>> On Tue, Nov 4, 2014 at 10:43 PM, John Ralls <jralls at ceridwen.us> wrote:
>>>
>>>> On Nov 4, 2014, at 1:15 AM, chihchieh.sun at innolux.com wrote:
>>>>
>>>> Sorry, I made a mistake. Not coverting ANSI to UTF-8.
>>>>
>>>> I use the notepad++ and create a new file encoding in ANSI.
>>>>
>>>> Then, I encoded the file in UTF-8 as below
>>>>
>>>> Original : C:\Documents and Settings\chihchieh.sun\桌面\gnucash\資產負
>>>>> 表.gnucash
>>>> ANSI :     C:\Documents and Settings\chihchieh.sun\獢��竰\gnucash\鞈��峯鞎
> 甎鍦
>>>> 銵?gnucash
>>>> UTF-8 :    C:\Documents and Settings\chihchieh.sun\桌面\gnucash\資產負
> 債衿
>>>> gnucash.
>>>
>>> This is bug https://bugzilla.gnome.org/show_bug.cgi?id=737089.
>>>
>>> Regards,
>>> John Ralls
>>>
>>
>> I installed 2.6.4-2 in Windows 7 Professional Edition, Simplified
>> Chinese. Sorry, I don't have a copy of traditional edition. Create,
>> save as and open files, that either has name containing traditional
>> Chinese characters, or in a directory whose name contains traditional
>> Chinese characters, or both, the problem does not happen.
>>
>> btw, in Report, the bug above happens.
>
>> Interesting. Sun Chihchieh, what version of Windows are you using?
>
>> Regards,
>> John Ralls
>
> OS:
> microsoft windows xp
> professional
> version 2002
> sp3
>
> Hi,
>
> I try these pathes as below, and the first three of pathes are OK.
>
> OK
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\測試賬本.gnucash
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\測試賬本1234.gnucash
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\資產負債.gnucash
>
> NG
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\資產負債表.gnucash
>
> I found that the word "表" would effect the function.
>
> Howerver, the display of pathes in the history of GSettings is still
> strange as shown in picture.
>
> Is it Normal?
>
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\測試賬本.gnucash
> => C:\Documents and Settings\chihchieh.sun\獢\gnucash\皜祈岫鞈祆.gnucash
>
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\測試賬本1234.gnucash
> => C:\Documents and Settings\chihchieh.sun\獢\gnucash\皜祈岫鞈祆
> 1234.gnucash
>
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\資產負債.gnucash
> => C:\Documents and Settings\chihchieh.sun\獢\gnucash\鞈鞎.gnucash
>
> C:\Documents and Settings\chihchieh.sun\桌面\gnucash\資產負債表.gnucash
> => C:\Documents and Settings\chihchieh.sun\獢\gnucash\鞈鞎銵?gnucash
>
>
> (Embedded image moved to file: pic36423.jpg)
>

I'm leaving Windows for a bit long time. If as what I remembered is
right, Windows XP just uses "ANSI" encoding by default internally
rather than unicode. Could you have a try to set G_FILENAME_ENCODING
to ISO-8859-1[1] and then launch gnucash to verify again?

Ref:
[1] https://developer.gnome.org/glib/2.28/glib-Character-Set-Conversion.html#glib-Character-Set-Conversion.description


>
>
>
> ================================================================
> This e-mail and any files transmitted with it are CONFIDENTIAL and intended
> solely for the use of the intended recipient.  If you are not the intended
> recipient or the named addressee, please notify the sender immediately and
> delete this e-mail and any files transmitted with it from your system; you
> should not disseminate, distribute, or copy this e-mail and any files
> transmitted with it, or take any action in reliance on the contents of the
> said e-mail and files.
> ================================================================



-- 
A Python developer living in Beijing
http://about.me/tkdchen



More information about the gnucash-devel mailing list