ID: |
6560
|
Fixed in: |
|
Issue Date: |
2012-09-22 05:54 AEST
|
Owner: | CVS Support
|
Last Modified: | 2012-10-05 07:00 AEST | Reporter: | Glen Starrett
|
Current Est. | 0.0 hours
| % Complete: | 0.0
|
Status: | NEW /
|
Severity: | normal
|
Affected: | 2.8.02
|
Description: | CVS Add doesn't work properly with Chinese characters (TCVS and command line tested)
|
Actions:
|
2012-09-22 05:54 AEST by Glen Starrett - CVS Suite 2010 trial installed with case sensitive driver. The current
directory is configured for case sensitivity, but the files present differ by
more than just case.
Both command line and TortoiseCVS were tested with CVS Add.
* TCVS Make new module wintest1
* TCVS Add Contents, set file format to ASCII, get error in add dialog (attached)
* At CLI, try to Add files without --utf8 flag, fails.
* At CLI, try to Add files with --utf8 flag, fails. Got trace of this one
(attached).
Note that there's no way to get TCVS to use --utf8 as far as I can tell.
Separate bug 6559 filed with cvsrc bug preventing proper UTF TCVS handling. |
|
2012-09-22 05:55 AEST by Glen Starrett - Created an attachment (id=2524)
Chinese character Add trace
Steps to reproduce:
C:\Documents and Settings\Administrator\My Documents\cs\wintest1>dir
Volume in drive C has no label.
Volume Serial Number is 14EC-08E8
Directory of C:\Documents and Settings\Administrator\My Documents\cs\wintest1
09/21/2012 01:38 PM <DIR> .
09/21/2012 01:38 PM <DIR> ..
09/21/2012 12:08 PM 11 ??? zhishìzì.txt
09/21/2012 01:37 PM 12 ??? xiàngxíngzì.txt
2 File(s) 23 bytes
2 Dir(s) 3,303,481,344 bytes free
C:\Documents and Settings\Administrator\My Documents\cs\wintest1>cvs add *
cvs add: warning: directory CVS specified in argument
cvs add: but CVS uses CVS for its own purposes; skipping CVS directory
cvsntsrv server: cannot add special file `CVS'; skipping
cvsntsrv [server aborted]: Couldn't open RCS file /myrepo/wintest1/???
zhishìzì.
txt,v: Invalid argument
C:\Documents and Settings\Administrator\My Documents\cs\wintest1>cvs --utf8 add
*
cvs add: warning: directory CVS specified in argument
cvs add: but CVS uses CVS for its own purposes; skipping CVS directory
cvsntsrv server: cannot add special file `CVS'; skipping
cvsntsrv server: add.txt has already been entered
cvsntsrv [server aborted]: Couldn't open RCS file /myrepo/wintest1/???
zhishz.tx
t,v: Invalid argument
C:\Documents and Settings\Administrator\My Documents\cs\wintest1>cvs --utf8
-ttt
t add * > add.txt 2>&1
C:\Documents and Settings\Administrator\My Documents\cs\wintest1>cvs ver
Client: Concurrent Versions System (CVSNT) 2.8.02 (Cally) Build 4653 (RC 4)
(cli
ent/server)
Server: Concurrent Versions System (CVSNT) 2.8.02 (Cally) Build 4653 (RC 4)
(cli
ent/server)
|
|
2012-09-22 05:57 AEST by Glen Starrett - Created an attachment (id=2525)
Win Explorer view of uncontrolled items to be added
|
|
2012-09-22 05:58 AEST by Glen Starrett - Created an attachment (id=2526)
TCVS Make New Module
Nothing exciting or out of ordinary here, but this makes the uncontrolled
directory a module |
|
2012-09-22 05:59 AEST by Glen Starrett - Created an attachment (id=2527)
TCVS Add dialog
Add dialog with format of files set. Note the filenames look like they do in
console (not unicode text here apparently). |
|
2012-09-22 06:01 AEST by Glen Starrett - Created an attachment (id=2528)
TCVS Add output dialog
Shows error from add output. Same error message as at command line with the
--utf8 option set (can't set that option with TCVS). |
|
2012-10-05 08:00 AEST by Glen Starrett - Workaround: If you add with the filename explicitly, then it works. This only
seems to be a problem when using "cvs add *":
C:\test\q1>cvs --utf8 --cvsflt add *
cvs add: warning: directory CVS specified in argument
cvs add: but CVS uses CVS for its own purposes; skipping CVS directory
cvsntsrv server: cannot add special file `CVS'; skipping
cvsntsrv server: HI.txt already exists, with version number 1.1
cvsntsrv server: hi.txt already exists, with version number 1.1
cvsntsrv server: hi.txt already exists, with version number 1.1
cvsntsrv server: hi.txt already exists, with version number 1.1
cvsntsrv [server aborted]: Couldn't open RCS file /myrepo/non2/EUB??.txt,v: Inva
lid argument
C:\test\q1>cvs --utf8 --cvsflt add "??? zhishìzì.txt" "??? xiàngxíngzì.txt"
cvsntsrv server: scheduling file `??? zhishìzì.txt' for addition
cvsntsrv server: scheduling file `??? xiàngxíngzì.txt' for addition
cvsntsrv server: use 'cvsntsrv commit' to add these files permanently
C:\test\q1>cvs --utf8 --cvsflt ci -m "Added files with Chinese characters by nam
e"
cvs commit: Examining .
C:\test\q1>RCS file: /myrepo/non2/??? zhishìzì.txt,v
done
Checking in ??? zhishìzì.txt;
/myrepo/non2/??? zhishìzì.txt,v <-- ??? zhishìzì.txt
initial revision: 1.1
done
RCS file: /myrepo/non2/??? xiàngxíngzì.txt,v
done
Checking in ??? xiàngxíngzì.txt;
/myrepo/non2/??? xiàngxíngzì.txt,v <-- ??? xiàngxíngzì.txt
initial revision: 1.1
done
|
|