Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-18 Thread David Rothenberger
On 8/18/2008 12:14 PM, Yaakov (Cygwin Ports) wrote:
> David Rothenberger wrote:
>> I've tried building the latest apr and apr-util libraries.
>> Unfortunately, this doesn't allow subversion CLI to do UTF-8
>> conversions. So I think this is a limitation of Cygwin. I'd be happy if
>> someone more knowledgeable would correct me, though.
> 
> Did you try building these with Cygwin 1.7?

No, not yet. I haven't found the time yet to install 1.7 and try
building my packages. Life and work have conspired against me so far.

Do you expect it to work in 1.7?

I need to investigate further. It may be that apr's idea of the native
encoding is broken.

-- 
David Rothenberger    [EMAIL PROTECTED]

Meekness:  Uncommon patience in planning a revenge that is worth while.
-- Ambrose Bierce


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-18 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

David Rothenberger wrote:
> I've tried building the latest apr and apr-util libraries.
> Unfortunately, this doesn't allow subversion CLI to do UTF-8
> conversions. So I think this is a limitation of Cygwin. I'd be happy if
> someone more knowledgeable would correct me, though.

Did you try building these with Cygwin 1.7?


Yaakov



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkipyhYACgkQpiWmPGlmQSMqlACg7mVi/tuExvkIs7NdAFa5tPa8
oc0AoO1yHN5MwcKmCvzWn9WMX3pR1YF9
=Jwy1
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-18 Thread David Rothenberger
On 8/16/2008 10:48 AM, David Rothenberger wrote:
> On 8/16/2008 3:56 AM, Alexander Gottwald wrote:
>> David Rothenberger wrote:
>>> Spiro Trikaliotis wrote:
>>>
 This does not happen if I use a non-cygwin (command-line)
 Subversion, or
 if I use TortoiseSVN. That's the reason why I write this mail here, and
 not on a Subversion list.
>>>
>>> Windows supports the conversion using Windows APIs, it's just not
>>> supported through Cygwin.
> 
> This should have been "supported through apr/aprutil". I'm not sure what
> support Cygwin has for UTF-8.
> 
> apr1 and aprutil1 are both without a maintainer. I'm considering taking
> over those packages, but haven't found the time yet. It may be possible
> to get UTF support into those packages -- I am not an expert there at
> all. If those libraries can be built with UTF support, subversion will
> get it automatically.

I've tried building the latest apr and apr-util libraries.
Unfortunately, this doesn't allow subversion CLI to do UTF-8
conversions. So I think this is a limitation of Cygwin. I'd be happy if
someone more knowledgeable would correct me, though.

-- 
David Rothenberger    [EMAIL PROTECTED]

"Everyone is entitled to an *informed* opinion."
-- Harlan Ellison


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-18 Thread Spiro Trikaliotis
Hello David,

* On Fri, Aug 15, 2008 at 06:38:16PM -0700 David Rothenberger wrote:
> On 8/15/2008 4:29 AM, Spiro Trikaliotis wrote:
[...]
> Subversion for Cygwin uses apr or aprutil to do the conversion to UTF-8,  
> and those libraries don't support UTF conversion under Cygwin. I think  
> this is because Cygwin itself does not support it, although I'm not sure.

Thanks for the explanation.

>> The worst thing of this: Subversion completely aborts after this
>> (ignoring this one file would be a much better option for me...)
>
> That is the stock behavior for subversion when the conversion fails. I'm  
> not going to change that for Cygwin.

Yes, I know. This was not meant as a wish for you to change it, just a
description of the current status.

>> This does not happen if I use a non-cygwin (command-line) Subversion, or
>> if I use TortoiseSVN. That's the reason why I write this mail here, and
>> not on a Subversion list.
>
> Windows supports the conversion using Windows APIs, it's just not  
> supported through Cygwin.

Ok; thus, for this specific project, I will stay with the "native" SVN.

Thank you.

Best regards,
Spiro.

-- 
Spiro R. Trikaliotis  http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-16 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

David Rothenberger wrote:
> This should have been "supported through apr/aprutil". I'm not sure what
> support Cygwin has for UTF-8.
> 
> apr1 and aprutil1 are both without a maintainer. I'm considering taking
> over those packages, but haven't found the time yet. It may be possible
> to get UTF support into those packages -- I am not an expert there at
> all. If those libraries can be built with UTF support, subversion will
> get it automatically.

You may find these helpful:

http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/libs/apr1/
http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/libs/aprutil1/

Note that the latter assumes dependencies which are not currently in the
distro; you'll need to adjust the configure flags accordingly.


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkinr+EACgkQpiWmPGlmQSMXWACeKkM2Vr6dW2KviY5IUyQAwiDy
YG4AnRuk5p4+wxIiEqtjb+Jznt7rR5J1
=73m2
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-16 Thread David Rothenberger

On 8/16/2008 3:56 AM, Alexander Gottwald wrote:

David Rothenberger wrote:

Spiro Trikaliotis wrote:


This does not happen if I use a non-cygwin (command-line) Subversion, or
if I use TortoiseSVN. That's the reason why I write this mail here, and
not on a Subversion list.


Windows supports the conversion using Windows APIs, it's just not 
supported through Cygwin.


This should have been "supported through apr/aprutil". I'm not sure what 
support Cygwin has for UTF-8.


apr1 and aprutil1 are both without a maintainer. I'm considering taking 
over those packages, but haven't found the time yet. It may be possible 
to get UTF support into those packages -- I am not an expert there at 
all. If those libraries can be built with UTF support, subversion will 
get it automatically.



So the suggested workaround is to use native Windows Subversion?


Yes. Or TortoiseSVN or Subclipse or any other Windows client. I 
personally use Subclipse and the Cygwin CLI and have had no problems. I 
can't comment on whether using the native Windows SVN CLI in combination 
with the Cygwin CLI will cause problems or not.


--
David Rothenberger    [EMAIL PROTECTED]

"We'll look into it":
By the time the wheels make a full turn, we
assume you will have forgotten about it, too.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-16 Thread Alexander Gottwald

David Rothenberger wrote:

Spiro Trikaliotis wrote:


This does not happen if I use a non-cygwin (command-line) Subversion, or
if I use TortoiseSVN. That's the reason why I write this mail here, and
not on a Subversion list.


Windows supports the conversion using Windows APIs, it's just not 
supported through Cygwin.




So the suggested workaround is to use native Windows Subversion?

bye
Alex


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-15 Thread David Rothenberger

On 8/15/2008 4:29 AM, Spiro Trikaliotis wrote:

Hello,

I have noticed a behaviour with Subversion 1.5.1 (and the previous one, I
think it was 1.4.6?) on a specific project.

I get the following output:

$ LANG=C svn up
svn: Can't convert string from native encoding to 'UTF-8':
svn: RE  Papers f?\252r XXX.msg

(The ?\252 is a German-umlaut 'u' - 'ü')


Subversion for Cygwin uses apr or aprutil to do the conversion to UTF-8, 
and those libraries don't support UTF conversion under Cygwin. I think 
this is because Cygwin itself does not support it, although I'm not sure.



The worst thing of this: Subversion completely aborts after this
(ignoring this one file would be a much better option for me...)


That is the stock behavior for subversion when the conversion fails. I'm 
not going to change that for Cygwin.



This does not happen if I use a non-cygwin (command-line) Subversion, or
if I use TortoiseSVN. That's the reason why I write this mail here, and
not on a Subversion list.


Windows supports the conversion using Windows APIs, it's just not 
supported through Cygwin.


--
David Rothenberger    [EMAIL PROTECTED]

There is an old time toast which is golden for its beauty.
"When you ascend the hill of prosperity may you not meet a friend."
-- Mark Twain


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Subversion 1.5.1 on Cygwin: Aborting because "Can't convert string from native encoding to 'UTF-8'": Subversion problem, or generic Cygwin installation problem?

2008-08-15 Thread Spiro Trikaliotis
Hello,

I have noticed a behaviour with Subversion 1.5.1 (and the previous one, I
think it was 1.4.6?) on a specific project.


I get the following output:

$ svn up
svn: Kann Zeichenkette nicht von der eigenen Codierung nach
?\194?\187UTF-8?\194?\171 konvertieren:
svn: RE  Papers f?\252r XXX.msg

$ LANG=C svn up
svn: Can't convert string from native encoding to 'UTF-8':
svn: RE  Papers f?\252r XXX.msg

(The ?\252 is a German-umlaut 'u' - 'ü')

The worst thing of this: Subversion completely aborts after this
(ignoring this one file would be a much better option for me...)


This does not happen if I use a non-cygwin (command-line) Subversion, or
if I use TortoiseSVN. That's the reason why I write this mail here, and
not on a Subversion list.

So, as far as I understand, the problem is that my system cannot convert
the 'ü' to UTF8. But why can't it?

BTW: I am not completely sure that this is a SVN problem per se. If I do
a ls -l, I get the following output:

$ ls -l
[...]
-rwxr-xr-x 1 tri Kein 34304 Aug 12 15:02 RE  Papers f?r ZESAN.msg
[...]

Note, again, that the Umlaut-u is replaced with a question mark '?'. So,
this might also be some other problem with my Cygwin install.

But: Which setting do I have to change? I tried setting the environment
variable $LANG to different values, but it seems not to have any effect.
Also, I tried codepage:ansi and codepage:oem in $CYGWIN (before starting
bash), but it seems to have no effect, too.

So, I am stuck with a problem, and I am not completely sure where to
proceed. Thus, any help is highly appreciated.

Regards,
   Spiro.

-- 
Spiro R. Trikaliotis  http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/