monotone

Issue 204: Monotone does not work with non-ANSI symbols on Windows with Russian locale

Reported by Anton Zimin, Mar 14, 2012

Steps to reproduce the problem:
-------------------------------

1. Create empty database. Setup a branch.
2. Create new folder with name in Russian ('Папка' in my case).
3. mtn add . -R

Expected result:
----------------
Folder must be included into repository.

Actual results:
---------------
C:\temp\mtntest>mtn add . -R
mtn: warning: skipping directory 'Папка' with unsupported name

Output of `mtn version --full`:
-------------------------------
monotone 1.0 (base revision: unknown)
Running on          : Windows NT/2000/XP/2003 (6.1, build 7601, 
Service Pack 1)
on ia32 (level 6, rev 3853)
C++ compiler        : GNU C++ version 4.5.2
C++ standard library: GNU libstdc++ version 20101216
Boost version       : 1_46_1
SQLite version      : 3.7.5 (compiled against 3.7.5)
Lua version         : Lua 5.1
PCRE version        : 8.12 2011-01-15 (compiled against 8.12)
Botan version       : 1.8.11 (compiled against 1.8.11)
Changes since base revision:
unknown

Comment 1 by Anton Zimin, Mar 14, 2012

Also I've tried to manually edit _MTN/revision in UTF-8 without BOM 
this way:

format_version "1"

new_manifest [0000000000000000000000000000000000000002]

old_revision []

add_dir ""

add_dir "Папка"


Monotone reads this file as ASCII but not UTF-8:

C:\temp\mtntest>mtn status
mtn: fatal: error: failed to convert string from UTF-8 to ASCII: 
'Р?апка'
mtn: This is almost certainly a bug in monotone.
mtn: Please report this error message, the output of 'mtn version 
--full',
mtn: and a description of what you were doing to '
https://code.monotone.ca/p/mon
otone/issues/'.
mtn: wrote debugging log to C:/temp/mtntest/_MTN/debug
mtn: if reporting a bug, please include this file

Created: 12 years 1 month ago by Anton Zimin

Updated: 12 years 1 month ago

Status: New

Labels:
Type:Defect
Priority:Medium

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status