Re: subversion problem

2018-04-25 Thread David Rothenberger
Yasutaka Atarashi wrote:
> I had some doubt that the modification suggested in my mail:
> Cygwin subversion and UNC path 
> https://cygwin.com/ml/cygwin/2018-04/msg00271.html
> would cause the failure.
> However, this would not be the case.

Yes, I agree your change is not the source of the problem.

> 
> I'm afraid to say that it seems to be an oversight in 05-retry-loop.patch.
> 
> The first call of the loop target function must be made BEFORE the call of 
> WIN32_RETRY_LOOP() while Cygwin branch of svn_io_file_rename2() calls 
> WIN32_RETRY_LOOP() directly.

Thanks, I agree this is the likely source of the problem. I won't have time to 
try it until this weekend. Thanks for investigating.


-- 
David Rothenberger    daver...@acm.org


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



Re: subversion problem

2018-04-25 Thread Yasutaka Atarashi

Hi David,

I had some doubt that the modification suggested in my mail:
Cygwin subversion and UNC path 
https://cygwin.com/ml/cygwin/2018-04/msg00271.html
would cause the failure.
However, this would not be the case.

I'm afraid to say that it seems to be an oversight in 05-retry-loop.patch.

The first call of the loop target function must be made BEFORE the call of 
WIN32_RETRY_LOOP() while Cygwin branch of svn_io_file_rename2() calls 
WIN32_RETRY_LOOP() directly. 

I've made just simple tests only but applying the following patch additionally 
and replacing cygsvn_subr-1-0.dll seems to fix the issues.

--- origsrc/subversion-1.10.0/subversion/libsvn_subr/io.c   2018-04-24 
15:58:49.920742300 +0900
+++ src/subversion-1.10.0/subversion/libsvn_subr/io.c   2018-04-24 
21:16:56.215447100 +0900
@@ -4294,6 +4294,7 @@ svn_io_file_rename2(const char *from_pat
   status = apr_file_rename(from_path_apr, to_path_apr, pool);
 }
 #elif defined (__CYGWIN__)
+  status = apr_file_rename(from_path_apr, to_path_apr, pool);
   WIN32_RETRY_LOOP(status, apr_file_rename(from_path_apr, to_path_apr, pool));
 #else
   status = apr_file_rename(from_path_apr, to_path_apr, pool);

Regards,
Yasutaka ATARASHI

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



RE: subversion problem

2018-04-23 Thread Rockefeller, Harry
David wrote:
>It looks like something is broken in 1.10.0, probably by me and not upstream. 
>I'll investigate as soon as I can, but it may >not be until next week. In the 
>meantime, I suggest downgrading to 1.9 version.

Thank you.  Downgrading to 1.9.7 works for me.


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



RE: subversion problem

2018-04-23 Thread Rockefeller, Harry
>-Original Message-
>From: Andrey Repin
>Sent: Monday, April 23, 2018 3:51 PM
>To: Rockefeller, Harry;  cygwin@cygwin.com
>Subject: Re: subversion problem

>Greetings, Rockefeller, Harry!

>> I just updated packages this morning and noticed there were some
>> subversion updates.  I was wondering if version 10 is new and requires me to 
>> do something?
>> Or maybe the recent release broke something?

>Did you read the release notes before making this post?

No.  I did read them quickly afterward when I went to the Cygwin mailing list 
archive.
 I didn't see anything that I needed to do.



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



Re: subversion problem

2018-04-23 Thread Andrey Repin
Greetings, Rockefeller, Harry!

> I just updated packages this morning and noticed there were some
> subversion updates.  I was wondering if version 10 is new and requires me to 
> do something?
> Or maybe the recent release broke something?

Did you read the release notes before making this post?...


-- 
With best regards,
Andrey Repin
Monday, April 23, 2018 23:50:44

Sorry for my terrible english...


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



Re: subversion problem

2018-04-23 Thread David Rothenberger
Rockefeller, Harry wrote:
> I just updated packages this morning and noticed there were some
> subversion updates.  I was wondering if version 10 is new and requires me to 
> do something?
> Or maybe the recent release broke something?

It looks like something is broken in 1.10.0, probably by me and not upstream. 
I'll investigate as soon as I can, but it may not be until next week. In the 
meantime, I suggest downgrading to 1.9 version.

-- 
David Rothenberger    daver...@acm.org

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



subversion problem

2018-04-23 Thread Rockefeller, Harry
I just updated packages this morning and noticed there were some
subversion updates.  I was wondering if version 10 is new and requires me to do 
something?
Or maybe the recent release broke something?

About my Cygwin system: [If more information is required please ask.]
$ uname -a
CYGWIN_NT-6.1 HARRYR-PC 2.10.0(0.325/5/3) 2018-02-02 15:16 x86_64 Cygwin
$ cygcheck -c subversion
...
Package  VersionStatus
subversion   1.10.0-1   OK
$ svnadmin info /usr/local/svnroot
Path: /usr/local/svnroot
UUID: 6c5b531c-fdee-0310-8ccc-e19e2ad93f33
Revisions: 1029
Repository Format: 5
Compatible With Version: 1.9.0
Repository Capability: mergeinfo
Filesystem Type: fsfs
Filesystem Format: 7
FSFS Sharded: yes
FSFS Shard Size: 1000
FSFS Shards Packed: 0/1
FSFS Logical Addressing: yes
Configuration File: /usr/local/svnroot/db/fsfs.conf

I also ran "svnadmin verify" on the repository above and there were no errors.
Also, as shown here, I use subversion only locally.

Simple example of the problem.

harryr@HARRYR-PC ~/test_subversion
$ svn co file:///usr/local/svnroot/ced
Aced/branches
Aced/tags
Aced/trunk
svn: E02: Can't change perms of file 
'/cygdrive/c/Users/harryr/test_subversion/ced/.svn/pristine/85/85d3a383ab07dabcd654cbe2d4bfea4f6a658b6c.svn-base':
 No such file or directory

ced/trunk is the only path that actually has files in it.

$ svn list file:///usr/local/svnroot/ced/trunk/cedmain.c
cedmain.c

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



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-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 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/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-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-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 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/



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/



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/