Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d8b8221
Prepare for removal of TextConverter in Pharo: pull out the GRPharoZn…
Nov 11, 2021
44bda62
include pharo10
Nov 11, 2021
81d4903
include Pharo10 in the CI actions
Nov 11, 2021
4dbda18
typo...
Nov 11, 2021
8f5255d
update gemstone version (mostly to trigger build again)
Dec 27, 2021
2c53cdd
- Rename GRPharoUtf8CodecStream to GRPharoDeprecatedUtf8CodecStream
Jan 16, 2022
b06d7ff
Merge 8f5255d8483bb08408d4f3c84f31fa87309108bd
Jan 16, 2022
c75170b
Use the Zn-based utf8 codec in Pharo by default
Jan 16, 2022
1e872b6
Added Grease-Pharo10-Core as a copy of Grease-Pharo90-Core and remove…
Jan 16, 2022
6b9ff20
Merge pull request #130 from SeasideSt/pharo-utf8-encoding
Jan 16, 2022
deed35e
remove unused class inst vars on GRGemStoneRandomProvider
Jan 16, 2022
2ba142c
pharo10:
Jan 24, 2022
7a35c98
ping the CI for PR#134
Mar 19, 2022
4a8e347
Fix test for GRPharoGenericCodec to be skipped in Pharo10
Mar 19, 2022
db79fe7
Merge pull request #134 from SeasideSt/pharo10
Mar 19, 2022
94f262d
rename package Pharo10 to Pharo100 to avoid confusion with Pharo1
Mar 19, 2022
fec1cf4
Merge pull request #135 from SeasideSt/pharo100
Mar 19, 2022
9c769b6
Seems like the package named Pharo10 was not removed previously... ic…
Mar 20, 2022
a97cf61
Merge fec1cf49e3977d1d8e3ec83487281a45976654b5
Mar 20, 2022
9cfcb6a
remove package Pharo10 still did not work?
Mar 20, 2022
9167782
remove obsolete Pharo packages
Mar 20, 2022
1604506
Added GsContext>>tempNamed: (for compatibility with the test in Pharo…
Mar 20, 2022
3fc0427
version 1.8.1
Mar 20, 2022
3898940
fix grpackage methods for pharo100 (useless?)
Mar 26, 2022
27f6852
Set an expected failure for testReadWriteEmptyFileInFolderBinary unti…
Apr 3, 2022
b2fcc52
fix expectedFailures...
Apr 3, 2022
9c3b895
increase version number to v1.8.2
Apr 3, 2022
c753fef
Merge pull request #136 from SeasideSt/grpackage-pharo100
Apr 3, 2022
74f54ab
move pharo 10 out of the 'experimental' list for the CI build, move a…
Apr 3, 2022
3c4fa03
Move all codecs in Pharo10 to use Zinc
Apr 9, 2022
1d8daee
make thisContext test work for Squeak
Apr 9, 2022
aa57cee
Merge pull request #137 from SeasideSt/grpackage-pharo100
Apr 9, 2022
269986e
CI updates: move Squeak back
Apr 9, 2022
fd607d1
Added #binaryWriteStreamFor:do: and #newTemporaryFileReference to GRP…
theseion May 20, 2020
4a73973
Add methods used for streaming to Pharo 100 platform
theseion Jun 4, 2022
8b34088
Add methods for streaming to Pharo 9 platform
theseion Jun 4, 2022
47808cb
Remove #binaryWriteStreamFor:do:
theseion Jun 5, 2022
c5c7167
Removed #binaryWriteStreamFor:do: from Pharo 10
theseion Jun 5, 2022
3899a41
Removed #binaryWriteStreamFor:do: from Pharo 7
theseion Jun 5, 2022
a248d08
Removed #binaryWriteStreamFor:do: from Squeak
theseion Jun 5, 2022
ce61d53
Removing expected failure since https://github.com/svenvc/zinc/issues…
Jun 6, 2022
5ad8d0b
Merge pull request #138 from theseion/file-utilities-for-streaming-up…
Jun 6, 2022
23414e5
Add BaselineOfGreaseForGToolkit
chisandrei Jun 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move all codecs in Pharo10 to use Zinc
  • Loading branch information
Johan Brichau
Johan Brichau committed Apr 9, 2022
commit 3c4fa03cbdeab25d3d8aed1387d41aead2710eb4

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
private
basicForEncoding: aString
(self supportsEncoding: aString)
ifFalse: [ self unsupportedEncoding: aString ].
^ self basicNew initializeWithName: aString
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
codecs
^ self supportedEncodingNames
collect: [ :each | self basicForEncoding: each greaseString ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
accessing
supportedEncodingNames
"answers the names of the encodings supported by this class"

| all |
all := ZnCharacterEncoder knownEncodingIdentifiers asOrderedCollection.
(all includes: 'utf8')
ifTrue:[ all addAll: #('utf-8' 'UTF-8') ].
(all includes: 'utf16')
ifTrue:[ all addAll: #('utf-16' 'UTF-16') ].
(all includes: 'macroman')
ifTrue:[ all add: 'mac-roman' ].
^ all
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
supportsEncoding: aName
^ self supportedEncodingNames includes: aName
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
conversion
decoderFor: aStream
^ self encoderFor: aStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
conversion
encoderFor: aStream
^ GRPharoZnCodecStream
on: aStream
withEncoder: (ZnCharacterEncoder newForEncoding: self name)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
initialization
initializeWithName: aString
self initialize.
name := aString.
urlCodec := (#('iso-8859-15' 'cp-1252' 'utf8' 'utf-8' 'UTF-8') includes: aString)
ifFalse: [ GRCodec forEncoding: 'utf8' ]
ifTrue: [ self ]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
accessing
name
^ 'utf-8'
^ name
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
url
"RFC 3986: When a new URI scheme defines a component that represents textual data consisting of characters from the Universal Character Set [UCS], the data should first be encoded as octets according to the UTF-8 character encoding."

^ urlCodec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "GRPharoUtf16Codec",
"instvars" : [
"name",
"urlCodec"
],
"name" : "GRPharoZnCodec",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instance creation
on: aStream withEncoder: aZnEncoder
^ self basicNew initializeOn: aStream withEncoder: aZnEncoder
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
initialization
initializeOn: aStream withEncoder: aZnEncoder
self initialize.
stream := aStream.
encoder := aZnEncoder
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"instvars" : [
"encoder"
],
"name" : "GRPharoZnUtf8CodecStream",
"name" : "GRPharoZnCodecStream",
"type" : "normal"
}
Loading