readStream without encoding ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

readStream without encoding ?

BREITH Karl-Albert (AREVA)

 

When I execute:

‚aFile‘ asFilename readStream, I am getting (because of my language setting LANG=en_US.UTF-8 on Linux) an EncodedStream on an ExternalReadStream.

 

I would like to get, independent of the user’s language setting, a normal ExternalReadStream.

Surely, I can open the file by:

                ExternalReadStream on: (FileConnection

                                                               openFileNamed: self

                                                               mode: #readOnly

                                                               creationRule: #noCreate)

 

Is there a more elegant way to avoid encoding when readStream is used ?

 

Karl

 

 

__________________________________________________________

Karl Breith

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: readStream without encoding ?

Michael Lucas-Smith-2
Unencoded streams are the default in Xtreams. For ST80 streams, you can send #binary to disable the encoding.

On 12 Feb 2014, at 10:32 pm, BREITH Karl-Albert (AREVA) <[hidden email]> wrote:

 
When I execute:
‚aFile‘ asFilename readStream, I am getting (because of my language setting LANG=en_US.UTF-8 on Linux) an EncodedStream on an ExternalReadStream.
 
I would like to get, independent of the user’s language setting, a normal ExternalReadStream.
Surely, I can open the file by:
                ExternalReadStream on: (FileConnection
                                                               openFileNamed: self
                                                               mode: #readOnly
                                                               creationRule: #noCreate)
 
Is there a more elegant way to avoid encoding when readStream is used ?
 
Karl
 
 
__________________________________________________________
Karl Breith 

 
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: readStream without encoding ?

mkobetic
In reply to this post by BREITH Karl-Albert (AREVA)
('aFile' asFilename withEncoding: #binary) readStream

HTH,

Martin

"BREITH Karl-Albert (AREVA)"<[hidden email]> wrote:

> Date: February 12, 2014 6:32:29 AM
> From: "BREITH Karl-Albert (AREVA)" <[hidden email]>
> To: "Vwnc ([hidden email])"<[hidden email]>
> Subject: [vwnc] readStream without encoding ?
>
>
> When I execute:
> 'aFile' asFilename readStream, I am getting (because of my language setting LANG=en_US.UTF-8 on Linux) an EncodedStream on an ExternalReadStream.
>
> I would like to get, independent of the user's language setting, a normal ExternalReadStream.
> Surely, I can open the file by:
>                 ExternalReadStream on: (FileConnection
>                                                                openFileNamed: self
>                                                                mode: #readOnly
>                                                                creationRule: #noCreate)
>
> Is there a more elegant way to avoid encoding when readStream is used ?
>
> Karl
>
>
> __________________________________________________________
> Karl Breith
>
>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc