comparison test/org/tmatesoft/hg/test/TestStorePath.java @ 412:63c5a9d7ca3f smartgit3

Follow-up for Issue 29: unify path translation for manifest and dirstate
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 21 Mar 2012 14:54:02 +0100
parents 464b4404e75d
children 12f668401613
comparison
equal deleted inserted replaced
411:464b4404e75d 412:63c5a9d7ca3f
117 117
118 @Test 118 @Test
119 public void testNationalChars() { 119 public void testNationalChars() {
120 String s = "Привет.txt"; 120 String s = "Привет.txt";
121 // 121 //
122 propertyOverrides.put(Internals.CFG_PROPERT_FS_FILENAME_ENCODING, "cp1251"); 122 propertyOverrides.put(Internals.CFG_PROPERTY_FS_FILENAME_ENCODING, "cp1251");
123 PathRewrite sph = internals.buildDataFilesHelper(); 123 PathRewrite sph = internals.buildDataFilesHelper();
124 errorCollector.checkThat(sph.rewrite(s), CoreMatchers.<CharSequence>equalTo("store/data/~cf~f0~e8~e2~e5~f2.txt.i")); 124 errorCollector.checkThat(sph.rewrite(s), CoreMatchers.<CharSequence>equalTo("store/data/~cf~f0~e8~e2~e5~f2.txt.i"));
125 // 125 //
126 propertyOverrides.put(Internals.CFG_PROPERT_FS_FILENAME_ENCODING, "UTF8"); 126 propertyOverrides.put(Internals.CFG_PROPERTY_FS_FILENAME_ENCODING, "UTF8");
127 sph = internals.buildDataFilesHelper(); 127 sph = internals.buildDataFilesHelper();
128 errorCollector.checkThat(sph.rewrite(s), CoreMatchers.<CharSequence>equalTo("store/data/~d0~9f~d1~80~d0~b8~d0~b2~d0~b5~d1~82.txt.i")); 128 errorCollector.checkThat(sph.rewrite(s), CoreMatchers.<CharSequence>equalTo("store/data/~d0~9f~d1~80~d0~b8~d0~b2~d0~b5~d1~82.txt.i"));
129 } 129 }
130 } 130 }