[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content
From: |
hilaire |
Subject: |
[Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content |
Date: |
Thu, 25 Jul 2019 18:55:30 -0000 |
The problem may come when saving and not loading.
But I can't input chinese (But pasting your Taiwan chinese word seem ok there).
Better you can apply these changes below.
Apply this fix bellow to your running DrGeo instance:
Add and modify these three methods in the class DrGDirectoryLocal
(To open it, Shift-Enter, write its name, select it in the list and Enter)
putBinary: stream into: filename
(location asFileReference / filename) ensureDelete
binaryWriteStreamDo: [ :fileStream |
fileStream nextPutAll: stream contents]
putText: stream into: filename
(location asFileReference / filename) ensureDelete writeStreamDo: [
:fileStream |
fileStream nextPutAll: stream contents]
put: stream into: filename
stream isBinary
ifTrue: [ self putBinary: stream into: filename]
ifFalse: [ self putText: stream into: filename ]
--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1837745
Title:
Corrupted sketch file when Chinese content
Status in Dr. Geo II:
New
Bug description:
I am running Dr. Geo 19.06 on Lubuntu 18.04. When naming a Dr. Geo
object, I can input Chinese using the fcitx input method from the
host. When I save the sketch, however, the *.fgeo xml file becomes
garbage, as can be seen using an editor from the host OS. Then Dr. Geo
will fail if asked to load the sketch. It's very easy to reproduce.
Just create a point, give it a Chinese name, and save it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1837745/+subscriptions
- [Dr. Geo] [Bug 1837745] [NEW] Corrupted sketch file when Chinese content, hilaire, 2019/07/24
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, hilaire, 2019/07/24
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, hilaire, 2019/07/24
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, hilaire, 2019/07/24
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, hilaire, 2019/07/24
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, Chao-Kuei Hung, 2019/07/25
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, Chao-Kuei Hung, 2019/07/25
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, Chao-Kuei Hung, 2019/07/25
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content,
hilaire <=
- [Dr. Geo] [Bug 1837745] Re: Corrupted sketch file when Chinese content, hilaire, 2019/07/25