#11830: Problems with Mercurial and utf-8 data in files
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:                
       Type:  defect    |         Status:  needs_review  
   Priority:  major     |      Milestone:  sage-4.7.2    
  Component:  scripts   |       Keywords:                
Work_issues:            |       Upstream:  N/A           
   Reviewer:            |         Author:  Jeroen Demeyer
     Merged:            |   Dependencies:                
------------------------+---------------------------------------------------

Old description:

> Using sage-4.7.2.alpha2 and the hg shipped with Sage, I cannot push the
> patch
> [http://trac.sagemath.org/sage_trac/attachment/ticket/11820/trac_11820_undo_4777.patch]
> because the username contains utf-8 non-ASCII characters:
>
> {{{
> $ hg qpush
> applying trac_11820_undo_4777.patch
> transaction abort!
> rollback completed
> cleaning up working directory...done
> abort: decoding near 'André Apitzsc': 'ascii' codec can't decode byte
> 0xc3 in position 4: ordinal not in range(128)!
> }}}
>
> A solution is to set `HGENCODING=utf8` in `sage-env`.

New description:

 Using sage-4.7.2.alpha2 and the hg shipped with Sage, I cannot push the
 patch
 
[http://trac.sagemath.org/sage_trac/attachment/ticket/11820/trac_11820_undo_4777.patch]
 because the username contains utf-8 non-ASCII characters:

 {{{
 $ hg qpush
 applying trac_11820_undo_4777.patch
 transaction abort!
 rollback completed
 cleaning up working directory...done
 abort: decoding near 'André Apitzsc': 'ascii' codec can't decode byte
 0xc3 in position 4: ordinal not in range(128)!
 }}}

 A solution is to set `HGENCODING=utf8` in `sage-env`.

 ----

 Apply [attachment:11830.patch] to the '''scripts repository'''.

--

Comment(by leif):

 Oh yes, this seems to catch all situations where we could run into this.

 (We would have had to change the Sage library's `hg_*` commands as well if
 we only changed e.g. `sage-sage`.)

 Will test this later.

 [[BR]]

 P.S:: The commit message lacks a ticket number... ;-)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11830#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to