2011/5/9 <[email protected]>:
> When I do "fossil ci" and I have no "editor" set fossil prompts me
> for the checkin comment. Maybe fossil should convert that comment
> into UTF-8 too (and convert it back for "fossil timeline").
>
> I did not found any other problems with cyrillic (Windows-1251)
> codepage on Windows XP SP3 + fossil [9a63d1f048] 2011-05-06
> 16:44:41 UTC. However due to the fact that fossil uses CP_ACP
> (Windows-1251 in my case), and not CP_OEMCP (CP866) doing
> "chcp 1251" is required to _see_ cyrillic filenames in
> "fossil ls", "fossil diff" etc.
>
> "fossil test-echo" shows no problem too. But all these conversions
> work only for a language which is the same as a system locale. When
> I'm trying to add a file with a swedish name I get a "not found"
> error because the filename loses diactrical marks (chcp does not
> help). In Windows this problem is sometimes solved by detecting a
> codepage from the current keyboard layout instead of using CP_ACP,
> but it wouldn't help in the case of fossil.
In my case, codepage 850 (OEM Multilingual Latin 1; Western European
(DOS)) is good enought (which is the default one in my installation).
I tought fossil try to convert from current codepage to utf8, I didn't
know that I should choose some codepage over other ones.
I've tried codepage 1252 (windows-1252) and test-echo seems to work properly.
=============================================================
C:\Documents and Settings\mgagnon\fossil\test4>chcp
Active code page: 1252
C:\Documents and Settings\mgagnon\fossil\test4>fslu test-echo ééèè çç
argv[0] = [fslu]
argv[1] = [test-echo]
argv[2] = [ééèè]
argv[3] = [çç]
==============================================================
So trying doing real stuff with codepage 1252 (add, status, ci etc..)
and I still have problems:
============================================================
C:\Documents and Settings\mgagnon\fossil\test4>chcp
Active code page: 1252
C:\Documents and Settings\mgagnon\fossil\test4>fslu version
This is fossil version [bbba160840] 2011-05-09 15:50:11 UTC
C:\Documents and Settings\mgagnon\fossil\test4>notepad été.txt
C:\Documents and Settings\mgagnon\fossil\test4>type été.txt
some text
with accent: éé èè à û ô ç
C:\Documents and Settings\mgagnon\fossil\test4>fslu init tt.fossil
project-id: d41a93ef55f21ee81c91213b403a37093f295b03
server-id: fd2fc02af2d56291770acd117a43df376bdd7512
admin-user: mgagnon (initial password is "3fb7ed")
C:\Documents and Settings\mgagnon\fossil\test4>fslu open tt.fossil
C:\Documents and Settings\mgagnon\fossil\test4>fslu add été.txt
ADDED été.txt
C:\Documents and Settings\mgagnon\fossil\test4>fslu status
repository: C:/Documents and Settings/mgagnon/fossil/test4/tt.fossil
local-root: C:/Documents and Settings/mgagnon/fossil/test4/
server-code: fd2fc02af2d56291770acd117a43df376bdd7512
checkout: 9f9aac5b8ea0151ecf44d1371378a7a350751120 2011-05-09 21:03:05 UTC
tags: trunk
comment: initial empty check-in (user: mgagnon)
ADDED été.txt
C:\Documents and Settings\mgagnon\fossil\test4>fslu commit
# Enter comments on this check-in. Lines beginning with # are ignored.
# The check-in comment follows wiki formatting rules.
#
# user: mgagnon
# tags: trunk
#
# ADDED été.txt
#
# Since no default text editor is set using EDITOR or VISUAL
# environment variables or the "fossil set editor" command,
# and because no check-in comment was specified using the "-m"
# or "-M" command-line options, you will need to enter the
# check-in comment below. Type "." on a line by itself when
# you are done:
some comments: with accents: ééé
.
C:/Documents and Settings/mgagnon/fossil/test4/été.txt contains CR/NL
line endings; commit anyhow (y
es/no/all)?a
New_Version: 5e740df9a1aa9e2d128abc48ef24cba438b3c54f
C:\Documents and Settings\mgagnon\fossil\test4>fslu ls
été.txt
C:\Documents and Settings\mgagnon\fossil\test4>fslu status
repository: C:/Documents and Settings/mgagnon/fossil/test4/tt.fossil
local-root: C:/Documents and Settings/mgagnon/fossil/test4/
server-code: fd2fc02af2d56291770acd117a43df376bdd7512
checkout: 5e740df9a1aa9e2d128abc48ef24cba438b3c54f 2011-05-09 21:03:41 UTC
parent: 9f9aac5b8ea0151ecf44d1371378a7a350751120 2011-05-09 21:03:05 UTC
tags: trunk
comment: some comments: with accents: (user: mgagnon)
EDITED été.txt
=========================================================
As we can see here:
- ADDED print work when I add the file, but when I do a status
before to commit, the output is wrong
- my commit message have accent, the status output don't show them.
- Just after I add the file, the status of that file show EDITED,
but I didn't modify it.
--
Martin
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users