Fossil

View Ticket
Login
Ticket Hash: 8d916f5fc30be34eb232cd9aca97ecc92769e8b4
Title: Issues with branch windows-i18n
Status: Fixed Type: Code_Defect
Severity: Severe Priority:
Subsystem: Resolution: Fixed
Last Modified: 2013-10-29 12:34:31
11.61 years ago
Created: 2011-05-02 19:13:52
14.10 years ago
Version Found In: eea6449098
Description:
Pull command fails on Czech XP windows.
c:\soft\bin>ver
Microsoft Windows XP [Verze 5.1.2600]
(Czech version of XP with SP3) 
Command window use configuration with current code page 852:
c:\soft\bin>MODE CON
Stav zařízení CON:
------------------
    Řádků:                      300
    Sloupců:                    80
    Rychlost opakování:         31
    Prodleva před opakováním:   1
    Znaková stránka:            852
c:\soft\bin>fossil.exe ver
This is fossil version [eea6449098] 2011-05-02 13:31:01 UTC

Pulling data from canonical fossil repository fails with following messages (Czech part of OS messages is displayed also incorrectly - wrong console codepage): c:\soft\bin>fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil c:\soft\bin\fossil.exe: SQLITE_CANTOPEN: os_win.c:33310: (3) winOpen(C:\Documents and Settings\user\Data aplikac\_fossil) - SystÚm nem¨×e nalÚzt uvedenou cestu. c:\soft\bin\fossil.exe: SQLITE_CANTOPEN: os_win.c:33310: (3) winOpen(C:\Documents and Settings\user\Data aplikac\_fossil) - SystÚm nem¨×e nalÚzt uvedenou cestu. c:\soft\bin\fossil.exe: SQLITE_CANTOPEN: cannot open file at line 33316 of [f55156c519] c:\soft\bin\fossil.exe: unable to open database file

If you have recently updated your fossil executable, you might need to run "fossil all rebuild" to bring the repository schemas up to date. -- os message in Czech tells, that system cannot find path specified correct path should be "C:\Documents and Settings\user\Data aplikací\_fossil", Path for _fossil file in function winOpen() is missing "í" small letter i with acute.

If I chage code page to Eastern Europe 1250 c:\soft\bin>MODE CON CP SELECT=1250 Stav zařízení CON: ------------------ Řádků: 300 Sloupců: 80 Rychlost opakování: 31 Prodleva před opakováním: 1 Znaková stránka: 1250

The messages after attempt to pull data from fossil repository indicate the same error, only Czech parts on display are now correct: c:\soft\bin>fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil c:\soft\bin\fossil.exe: SQLITE_CANTOPEN: os_win.c:33310: (3) winOpen(C:\Documents and Settings\user\Data aplikac\_fossil) - Systém nemůže nalézt uvedenou cestu. c:\soft\bin\fossil.exe: SQLITE_CANTOPEN: os_win.c:33310: (3) winOpen(C:\Documents and Settings\ron\Data aplikac\_fossil) - Systém nemůže nalézt uvedenou cestu. c:\soft\bin\fossil.exe: SQLITE_CANTOPEN: cannot open file at line 33316 of [f55156c519] c:\soft\bin\fossil.exe: unable to open database file

If you have recently updated your fossil executable, you might need to run "fossil all rebuild" to bring the repository schemas up to date.

Issue with problematic path to _fossil file is discussed also in http://www.fossil-scm.org/fossil/wiki?name=Windows+XP


anonymous added on 2011-05-03 19:48:17 UTC:
fossil from latest windows-i18n branch still suffers with troubles on non English windows systems.

c:\soft\bin>fossil ver
This is fossil version [48f5dadafd] 2011-05-03 18:32:00 UTC

c:\soft\bin>fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil c:\soft\bin\fossil.exe: invalid home directory: C:\Documents and Settings\user\Data aplikac (again, there is í missing, correct path should read "C:\Documents and Settings\user\Data aplikací")

c:\soft\bin>fossil init test.fossil c:\soft\bin\fossil.exe: invalid home directory: C:\Documents and Settings\user\Data aplikac


anonymous added on 2011-05-03 21:55:38 UTC:

c:\soft\bin>fossil ver
This is fossil version [b7df0b9ce6] 2011-05-03 20:25:03 UTC
c:\soft\bin>fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil
                Bytes      Cards  Artifacts     Deltas
Sent:             177          2          0          0
Received:        1412         31          0          0
Total network traffic: 291 bytes sent, 908 bytes received

Pull from canonical repository is working. Thanks.

It is possible to create new repository: c:\soft\bin>fossil init test.fossil project-id: 1077e040e493ef0a887a53c16df935bfe9fd8edb server-id: c01f4ddc57b5d22f0f7684e7f9382902433ea912 admin-user: user (initial password is "eb5efc")

Now, I can open it and check on its status c:\soft\bin>fossil open test.fossil c:\soft\bin>fossil status repository: c:/soft/bin/test.fossil local-root: c:/soft/bin/ server-code: c01f4ddc57b5d22f0f7684e7f9382902433ea912 checkout: 20f3504f47010db5c249061bb3604f85a293716d 2011-05-03 21:37:24 UTC tags: trunk comment: initial empty check-in (user: user)

If I try to add file with a name containing letters with diacritics "test_šťěk.txt" in my case c:\soft\bin>dir test*.txt 03.05.2011 23:40 39 test_šťěk.txt 1 souborů, 39 bajtů

It fails, because it try to open file under mungled name c:\soft\bin>fossil add .\test_šťěk.txt c:\soft\bin\fossil.exe: cannot open c:/soft/bin/test_ÜŁýk.txt


anonymous added on 2011-05-04 18:04:28 UTC:

It seems that data into repository go OK (as seen in browser), 
just display on command line is mungled. In fact in two different 
flavors. Also status command might be showing  EDITED even file 
was not edited after commit was made.
Please see details below.

c:\soft\bin>fossil ver This is fossil version [503a0ef555] 2011-05-04 11:16:53 UTC

In command window using codepage 852: c:\soft\bin>MODE CON Stav zařízení CON: ------------------ Řádků: 300 Sloupců: 80 Rychlost opakování: 31 Prodleva před opakováním: 1 Znaková stránka: 852

I can add file with name containing diacritics, ADDED message shows name mungled

c:\soft\bin>fossil add .\test_šťěk.txt ADDED test_ÜŁýk.txt

stat command show name mungled but now it is a different one c:\soft\bin>fossil stat repository: c:/soft/bin/test.fossil local-root: c:/soft/bin/ server-code: c01f4ddc57b5d22f0f7684e7f9382902433ea912 checkout: 20f3504f47010db5c249061bb3604f85a293716d 2011-05-03 21:37:24 UTC tags: trunk comment: initial empty check-in (user: user) ADDED test_+í+ą¦Ťk.txt

I can check in file with a note containing diacritical message

c:\soft\bin>fossil ci -m "added file .\test_šťěk.txt" New_Version: edcc37190a355d6f099e88b5de44c1720f03766e

ls shows name again mungled c:\soft\bin>fossil ls test_ÜŁýk.txt

stat shows message EDITED, even file was not changed since commit, name is mungled c:\soft\bin>fossil stat repository: c:/soft/bin/test.fossil local-root: c:/soft/bin/ server-code: c01f4ddc57b5d22f0f7684e7f9382902433ea912 checkout: edcc37190a355d6f099e88b5de44c1720f03766e 2011-05-04 17:27:07 UTC parent: 20f3504f47010db5c249061bb3604f85a293716d 2011-05-03 21:37:24 UTC tags: trunk comment: added file .\test_ÜŁýk.txt (user: user) EDITED test_+í+ą¦Ťk.txt

info command shows incorectly user-home path and comment c:\soft\bin>fossil info project-name: <unnamed> repository: c:/soft/bin/test.fossil local-root: c:/soft/bin/ user-home: C:/Documents and Settings/user/Data aplikacÝ project-code: 1077e040e493ef0a887a53c16df935bfe9fd8edb server-code: c01f4ddc57b5d22f0f7684e7f9382902433ea912 checkout: edcc37190a355d6f099e88b5de44c1720f03766e 2011-05-04 17:27:07 UTC parent: 20f3504f47010db5c249061bb3604f85a293716d 2011-05-03 21:37:24 UTC tags: trunk comment: added file .\test_ÜŁýk.txt (user: user)

Displayed commit message in Timeline as seen in browser(firefox 3.6.12) looks OK [edcc37190a] Leaf: added file .\test_šťěk.txt (user: user, tags: trunk)

content of the file in browser is correct: Artifact 8a24e0763f7eadac5cea150bf1942bb2b4855356

File test_šťěk.txt part of check-in [edcc37190a] - added file .\test_šťěk.txt by user on 2011-05-04 17:27:07. [annotate]
name of this file means bark in English

Repository Statistics page Repository Size: 56320 bytes Number Of Artifacts: 3 (stored as 3 full text and 0 delta blobs) Uncompressed Artifact Size: 147 bytes average, 240 bytes max, 443 bytes total Compression Ratio: 0:10 Number Of Check-ins: 1 Number Of Files: 1 Number Of Wiki Pages: 0 Number Of Tickets: 0 Duration Of Project: 1 days or approximately 0.00 years Project ID: 1077e040e493ef0a887a53c16df935bfe9fd8edb Server ID: c01f4ddc57b5d22f0f7684e7f9382902433ea912 Fossil Version: 2011-05-04 11:16:53 [503a0ef555] (mingw32) SQLite Version: 2011-04-27 19:54:44 [f55156c519] (3.7.6.1) Database Stats: 55 pages, 1024 bytes/page, 0 free pages, UTF-8, delete mode


anonymous added on 2011-05-04 18:56:55 UTC:
Here my observations: (using version: [503a0ef555])

On cmd.exe, I type: chcp 65001 and I use lucida console font instead of the default Rasters font to be able to use utf-8 on console. in that mode, fossil status will print filename correctly on the console. But not the fossil add command: since it print on screen before the conversion to utf-8. (I believe).

User Comments:
jan.nijtmans added on 2012-12-03 21:19:10:
Fixed in 1.25