[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn_utf_cstring_from_utf8 destroys list

From: Dominik Oesterreich <dominik_at_oesterreichnet.de>
Date: 2004-07-10 15:06:58 CEST

I've got a problem:

In according to function do_tree from svnlook I wrote:

*******
*******
void get_things (string_list ** list,svn_fs_root_t *root,
        const char *path /* UTF-8! */,
        const svn_fs_id_t *id,
        svn_boolean_t is_dir,
        apr_pool_t *pool,
        svn_boolean_t want_dir)

{
        struct string_list *tempLis = NULL;
        apr_pool_t *subpool;
        const char *name_native;
        apr_hash_t *entries;
        apr_hash_index_t *hi;

        printf("\nList 1\n");
        tempList = *liste;
        while (tempList != NULL)
        {
                printf(tempList->value);
                printf("\n");
                tempList = tempList->value;
        }

        svn_utf_cstring_from_utf8 (&name_native,path,pool);

        printf("\nList 2\n");
        tempList = *liste;
        while (tempList != NULL)
        {
                printf(tempList->value);
                printf("\n");
                tempList = tempList->value;
        }

*********
*********
Normaly List 1 and List 2 should be the same (I never changed the list)
but the result is:

List1:
/newdir/mo
/nedir

List2:
/newdir/test.txt
/newdir

The value of name_native is /newdir/test.txt

Does anybody have an idea??

Thx

Dominik

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 10 15:10:23 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.