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

RE: UTF and command line

From: David Balažic <david.balazic_at_comtrade.com>
Date: Mon, 10 Jun 2013 17:17:54 +0200

FYI: There is no such thing as UTF-8 character.
UTF is an encoding.

It encodes Unicode characters. So there are Unicode characters.

Same goes for font.

As for the problem: CMD.exe (the Command Prompt) is an 8-bit (ASCII) application. It can not "do" Unicode.
Windows converts Unicode characters to a selected 8-bit character encoding when working with CMD.EXE.
That encoding is selected in Control Panel / Region and Language / Administrative / Language for non-Unicode programs.

Do other programs work correctly? Like:
 - type "type 1‐2.txt"
 - type "notepad 1‐2.txt" ( should open notepad with the file loaded)

Regards,
David Balažic
Software Engineer
www.comtrade.com

> -----Original Message-----
> From: Igor [mailto:i3v_at_mail.ru]
> Sent: Sunday, June 09, 2013 6:19 AM
> To: users_at_tortoisesvn.tigris.org
> Subject: UTF and command line
> Importance: Low
>
> I'm still not sure if it's a bug, or if I'm doing something
> wrong. But I'm unable to get TortoiseSVN command-line tool to
> work with files with UTF-8 characters in their name.
>
> Workflow:
>
> 1. Create "c:\temp\UNCtest\R_UNCtest\" folder
> 2. Create a repository with default file structure in it
> 3. Checkout "trunk" dir to "c:\temp\WC\trunk"
> 4. Create file "c:\temp\WC\trunk\1‐2.txt" ,
> note, that filename consists of 3 symbols, and the one in the
> middle is "HYPHEN" or &#8208, (see
> http://www.fileformat.info/info/unicode/char/2010/index.htm )
>
> 5. Add and commit this file with Tortoise GUI.
> (this works OK)
> 6. start windows cmd
> 7. make sure your cmd is set to use UTF-8 compatible font,
> for example, "Consolas" (see
> http://stackoverflow.com/a/10765469/1032586 ).
> 8. navigate to "c:\temp\WC\trunk"
> 9. type "dir" - you should see the listing correctly,
> including "1‐2.txt" file
> 10. Type "mkdir 1‐2" - this should correctly create a directory.
> 11. Type "svn info 1‐2.txt"
> Result:
> --------------------------------------------------
> svn: warning: W155010: The node
> 'C:\TEMP\UNCtest\WC\trunk\1?2.txt' was not found
> .
>
> svn: E200009: Could not display info for all targets because
> some targets don't
> exist
> --------------------------------------------------
> * Note those 8208 symbol was replaced with question mark.
> * changing cmd's codepage to 65001 (see
> http://stackoverflow.com/a/388500/1032586 ) won't help
> * launching cmd with '/u' switch (see
> http://stackoverflow.com/a/2462138/1032586 ) won't help
>
>
> Thank you for your attention!
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061
> &dsMessageId=3057388
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_tortoisesvn.tigris.org].
>

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3057707

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-06-12 05:39:05 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.