Re: Bug fix

From: vincent vincent <vincent.abiword_at_gmail.com>
Date: Mon Apr 02 2012 - 08:32:31 CEST

Hi, Diana

I am Vincent. I think the bug fixing about UT_legalizeFileName is not
 a better solution,

From the code level:
-ABI_EXPORT bool UT_legalizeFileName(std::string &filename);
+ABI_EXPORT bool UT_legalizeFileName(UT_UTF8String &filename);

+ UT_legalizeFileName((UT_UTF8String)title); => I think this will
create a temp variable, so that tile will not be change using &

my patch is http://bugzilla.abisource.com/attachment.cgi?id=5536&action=view.
thanks

Vincent

在 2012年3月19日 上午8:17,Diana Maria Prajescu <diana.prajescu@gmail.com> 写道:
>
> I'm glad to hear that. Thank you very much for testing my patches.
>
> --
> Diana Prajescu
>
> 2012/3/18 Lubos Pintes <pintes@gmail.com>:
>> After applying this it built successfully.
>> Dňa 18. 3. 2012 18:00, Diana Maria Prajescu wrote / napísal(a):
>>
>>> Hello,
>>>
>>> I have attached all the patches needed so that there wouldn't be any
>>> build errors.
>>>
>>> - msvc2008Patch.patch is for the msvc2008 folder
>>> - srcPatch.patch is for the src folder
>>> - pluginsPatch.patch is for the plugins folder
>>>
>>>
>>> Regards,
>>> Diana Prajescu
>>>
>>>
>>> On Sun, Mar 18, 2012 at 4:54 PM, Diana Maria Prajescu
>>> <diana.prajescu@gmail.com> wrote:
>>>>
>>>> Great. Thanks very much. That errors are because some linkages are
>>>> missing from the solution not because of strptime.
>>>>
>>>> I've managed to determine the source of the errors and find a way to
>>>> get it running by commenting out 2 lines of code. I am still trying to
>>>> fix them without commenting out those lines. I will put here a patch
>>>> for that too, so you could take a look over if you may want.
>>>>
>>>> --
>>>> Diana Prajescu
>>>>
>>>> 2012/3/18 Lubos Pintes<pintes@gmail.com>:
>>>>>
>>>>> Ok now it worked for me. I did the following:
>>>>> 1. svn revert -R . for main AbiWord checkout folder and then for
>>>>> msvc2008
>>>>> folder.
>>>>> 2. Copied strptime.patch to the main AbiWord folder and
>>>>> LibAbiWord.vcproj.patch to the msvc2008 folder.
>>>>> 3. In main folder: patch -p0<strptime.patch
>>>>> 4. In msvc2008 folder: patch -p0<LibAbiWord.vcproj.patch
>>>>> 5. Patch was applied successfully, build was ok but I received this
>>>>> linker
>>>>> error:
>>>>> 1>ap_EditMethods.obj : error LNK2019: unresolved external symbol "bool
>>>>> __cdecl UT_legalizeFileName(class std::basic_string<char,struct
>>>>> std::char_traits<char>,class std::allocator<char> > &)"
>>>>>
>>>>> (?UT_legalizeFileName@@YA_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
>>>>> referenced in function "bool __cdecl s_AskForPathname(class XAP_Frame
>>>>> *,bool,int,char const *,char * *,int *)"
>>>>> (?s_AskForPathname@@YA_NPAVXAP_Frame@@_NHPBDPAPADPAH@Z)
>>>>>
>>>>> Dňa 18. 3. 2012 14:41, Diana Maria Prajescu wrote / napísal(a):
>>>>>
>>>>>> Hey,
>>>>>>
>>>>>> I have reviewed it and it seems that there should be 2 patches:
>>>>>> 1) strptime.patch: updates the sources to solve the strptime problem
>>>>>> for repo: http://svn.abisource.com/abiword/trunk/. I have created it
>>>>>> on the src folder.
>>>>>>
>>>>>> There is a small problem with it. When I apply the patch to a clean
>>>>>> copy of the SVN, the ap_Dialog_Latex.cpp and ut_std_string.cpp aren't
>>>>>> patched. I don't understand why.. The error I got when I try to do
>>>>>> this is "Rejected patch hunk".
>>>>>>
>>>>>> 2) LibAbiWord.vcproj.patch: it's the patch which adds the sources from
>>>>>> strptime.patch to the solution. I have created it on the msvc2008
>>>>>> folder for the repo: http://svn.abisource.com/abiword-msvc2008/trunk/
>>>>>>
>>>>>> These 2 patches are attached. I would be thankful if anyone can test
>>>>>> them and let me know the results.
>>>>>>
>>>>>> --
>>>>>> Many thanks,
>>>>>> Diana Prajescu
>>
>>
Received on Mon, 2 Apr 2012 14:32:31 +0800

This archive was generated by hypermail 2.1.8 : Mon Apr 02 2012 - 08:32:40 CEST