Re: feature request: support for parameter 'encoding' in sarge.Capture

29 views
Skip to first unread message

Vinay Sajip

unread,
Jun 5, 2013, 8:57:34 AM6/5/13
to sarge

On Jun 5, 12:15 pm, Klaus Mücke <klaus.kopr...@materna.de> wrote:

> So, what I need is new parameter to control the encoding in
> sarge.Capture.text. In sarge.Capture.text, 'utf-8' is used hard-coded. I
> would appreciate very much a new parameter (i.e. 'encoding') in
> get_stdout() (and similar functions) which will be used in
> sarge.Capture.text instead of the hard-coded 'utf-8'.
>
> In my case the above call would then be:
>
> print(sarge.get_stdout('dir *', shell=True, encoding='ibm850',
> cwd="d:\\dev"))
>
> which gives me the desired result.
>
> What do you think?

Seems a reasonable request :-)

I will look at it and there should be an update committed on BitBucket
shortly. Can you verify the fix from there?

Regards,

Vinay Sajip
Reply all
Reply to author
Forward
0 new messages