Kenneth Porter <shiva <at> sewingwitch.com> writes:
>
> --On Thursday, August 31, 2006 9:35 AM +0000 Constantine Dokolas
> <cdokolas <at> gmail.com> wrote:
>
> > The Greek codepage is 1253. Is a patch really necessary? Couldn't it be
> > retrieved by the OS?
>
> Not if the OS is Linux (where I'm hosting my Subversion repos via Apache),
> and the conversion is being done after the files were copied from a Windows
> system. Ideally the code page should be fetched from the command line.
>
> > I can build a new version if it's buildable under Visual Studio 6.0. Just
> > point me to the source and where to patch.
>
> ssphys/SSPhys/Formatter.cpp line 57
The best course is probably to set to the default locale (quote from MSDN
setlocale reference):
setlocale( LC_ALL, "" );
Sets the locale to the default, which is the user-default ANSI code
page obtained from the operating system.
-- or --
setlocale( LC_ALL, ".ACP" );
Sets the locale to the ANSI code page obtained from the operating system.
I tried both on my system and they correctly changed my locale to
Greek_Greece.1253!
That means that the line could become:
57: char *l = setlocale(LC_ALL, "");
58: TiXmlDeclaration decl ("1.0", l, "");
unless the locale is set elsewhere (i.e. globaly), in which case it would
become:
57: TiXmlDeclaration decl ("1.0", setlocale(LC_ALL, NULL), "");
What do you think?
Doc
_______________________________________________
vss2svn-users mailing list
Project homepage:
http://www.pumacode.org/projects/vss2svn/
Subscribe/Unsubscribe/Admin:
http://lists.pumacode.org/mailman/listinfo/vss2svn-users-lists.pumacode.org
Mailing list web interface (with searchable archives):
http://dir.gmane.org/gmane.comp.version-control.subversion.vss2svn.user