File: switch-encoding.sh

package info (click to toggle)
darcs 2.18.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,960 kB
  • sloc: haskell: 47,748; sh: 13,466; ansic: 447; perl: 134; makefile: 8
file content (89 lines) | stat: -rw-r--r-- 1,676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
. lib

switch_to_utf8_locale
lc_utf8=$LC_ALL

rm -rf E U

darcs init E
darcs clone E U

cd U
mkdir Texte
echo 'Müßiggang' > 'Texte/böse Zeichen'
darcs record -lam 'Erste Änderung'
darcs log -v
darcs send -ao bundle
tail -n+7 bundle > u_bundle

LC_ALL=C

darcs log -v
darcs send -ao bundle
tail -n+7 bundle > c_bundle

diff u_bundle c_bundle

darcs apply u_bundle | grep 'already .*applied'
darcs obliterate -a
darcs apply u_bundle | grep 'Finished applying'
darcs unrecord -a
darcs revert -a
darcs apply u_bundle | grep 'Finished applying'


LC_ALL=$lc_utf8

darcs apply c_bundle | grep 'already .*applied'
darcs obliterate -a
darcs apply c_bundle | grep 'Finished applying'
darcs unrecord -a
darcs revert -a
darcs apply c_bundle | grep 'Finished applying'

LC_ALL=C

cd ..

darcs clone U C
diff -r U/Texte C/Texte

cd C
darcs pull ../E --set-default

darcs apply ../U/u_bundle | grep 'already .*applied'
diff -r ../U/Texte Texte
darcs obliterate -ao ou_bundle
diff ../U/u_bundle ou_bundle
darcs apply ou_bundle | grep 'Finished applying'
diff -r ../U/Texte Texte
darcs unrecord -a
darcs revert -a
darcs pull ../U -a
diff -r ../U/Texte Texte
darcs send -ao bundle
tail -n+7 bundle > c_bundle

LC_ALL=$lc_utf8

darcs send -ao bundle
tail -n+7 bundle > u_bundle
diff u_bundle c_bundle

darcs apply c_bundle | grep 'already .*applied'
diff -r ../U/Texte Texte
darcs obliterate -ao oc_bundle
diff c_bundle oc_bundle
darcs apply c_bundle | grep 'Finished applying'
diff -r ../U/Texte Texte
darcs unrecord -a
darcs revert -a
darcs pull ../U -a
diff -r ../U/Texte Texte
darcs send -ao bundle
tail -n+7 bundle > c_bundle

cd ..

diff U/u_bundle C/u_bundle
diff -r U/Texte C/Texte