An xliff file is opened in Ocleot, changes made, file saved,the file and Ocelot closed. OpenOcelot again. It is not possibel to open the saved file. I cannot replicate this on my own computer, but was able to replicate this on a Chinese operating system.
The issue was reported by the Japanese linguists when editing a file MT-ed into Japanese.
I was not able to reproduce it on my machine which has EN OS. I had access to a machine with a Chinese OS and was able to replicate the issue there. I think the issue can be replicated on any Windows machine with an OS in a double-byte language, but this hypothesis is unconfirmed.
I tested on Windows 10 with the Chinese language pack installed and the "Language for non-Unicode programs" set to "Chinese (Simplified, China)". I believe this recreates the essential properties of Chinese variants of earlier versions of Windows. For instance the value of java.nio.charset.Charset.defaultCharset() is "GBK".
In this environment I was unable to reproduce the issue.
Please provide more information:
What was the exact OS used? (Windows 7, Windows 8, Windows 10, etc.)
Provide the input file and the un-openable file if possible
Otherwise please indicate:
What is the input file's encoding?
What errors are shown in the console?
What input is added to the modified file?
The system on which I was able to replicate the issue was Chinese Windows 7. It si not availbel to me now and I will not be able to get it or Japanese OS in the next 2 weeks.
I have made sure that the file necoding was UTF-8, but that did not help. I will try to add the files you have requested shortly.
Two files are attached.
I was unable to reproduce this on Windows 7 with the Simplified Chinese language pack and non-Unicode-program language set to Simplified Chinese.
The "doesn't open" file appears to be completely valid. Is there any chance that this was a case of Windows mistakenly believing a file to be "in use" when it really wasn't? If that was the case then I don't think there's anything we can do about it in Ocelot.
Does the file fail to open even after a restart of the system?