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

Re: svn commit: r25650 - in trunk/subversion: libsvn_subr tests/libsvn_subr

From: Ivan Zhakov <zhakov_at_tigris.org>
Date: 2007-07-10 12:21:57 CEST

On 7/7/07, masaru tsuchiyama <m.tmatma@gmail.com> wrote:
> Hello
>
> svn_cmdline_init in ibsvn_subr\cmdline.c
> > #if _MSC_VER < 1400
> > /* Initialize the input and output encodings. */
> > {
> > static char input_encoding_buffer[16];
> > static char output_encoding_buffer[16];
> >
> > apr_snprintf(input_encoding_buffer, sizeof input_encoding_buffer,
> > "CP%u", (unsigned) GetConsoleCP());
> > input_encoding = input_encoding_buffer;
> >
> > apr_snprintf(output_encoding_buffer, sizeof output_encoding_buffer,
> > "CP%u", (unsigned) GetConsoleOutputCP());
> > output_encoding = output_encoding_buffer;
> > }
> > #endif /* _MSC_VER < 1400 */
>
> If I comment out the above code, get_page_id_from_name is called
> with settting 'page_name' to 0x00000001(SVN_APR_LOCALE_CHARSET)
> and i18n works.
>
> Regards.
> Masaru.
>
> 2007/7/7, masaru tsuchiyama <m.tmatma@gmail.com>:
> > Hello
> >
> > > > In my machine,
> > > > svn_subr__win32_xlate_open is called with setting 'frompage' to "CP932".
> > Sorry. I made a mistake. It is not 'frompage' , but 'topage'.
> >
> > > Could you check what is source of this strange charset name?
> >
> > svn_cmdline_init in ibsvn_subr\cmdline.c
> > > #if _MSC_VER < 1400
> > > /* Initialize the input and output encodings. */
> > > {
> > > static char input_encoding_buffer[16];
> > > static char output_encoding_buffer[16];
> > >
> > > apr_snprintf(input_encoding_buffer, sizeof input_encoding_buffer,
> > > "CP%u", (unsigned) GetConsoleCP());
> > > input_encoding = input_encoding_buffer;
> > >
> > > apr_snprintf(output_encoding_buffer, sizeof output_encoding_buffer,
> > > "CP%u", (unsigned) GetConsoleOutputCP());
> > > output_encoding = output_encoding_buffer;
> > > }
> > > #endif /* _MSC_VER < 1400 */
> > input_encoding and output_encoding are global variables,
> > and are set to "CP932".
> >
> > svn_cmdline_cstring_from_utf8 in libsvn_subr\cmdline.c
> > > svn_error_t *
> > > svn_cmdline_cstring_from_utf8(const char **dest,
> > > const char *src,
> > > apr_pool_t *pool)
> > > {
> > > if (output_encoding == NULL)
> > > return svn_utf_cstring_from_utf8(dest, src, pool);
> > > else
> > > return svn_utf_cstring_from_utf8_ex2(dest, src, output_encoding, pool);
> > > }
> >
> > svn_cmdline_cstring_from_utf8 calls with setting output_encoding to "CP932".
> >
Hi,
Thank you for information! I've added special handling of codepage
names of form "CPnnn" in r25706. Could you try latest trunk and let me
know how is it?

-- 
Ivan Zhakov
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 10 12:21:31 2007

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.