Closed Bug 1545566 Opened 5 years ago Closed 5 years ago

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 168: ordinal not in range(128)

Categories

(Conduit :: moz-phab, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlast, Assigned: glob)

Details

(Keywords: conduit-triaged)

Attachments

(1 file)

I'm seeing this exception when I run DEBUG=1 moz-phab HEAD~1. Here is a link to the output https://drive.google.com/file/d/1sBFYmYcHHCNfA5V-DcNHQeAMedMd-pO_/view?usp=sharing

I got a similar error when I used moz-phab submit to update an already submitted (and uploaded) phabricator request:

ERROR    2019-07-10 07:04:04,366 Traceback (most recent call last):
  File "/home/andre/bin/moz-phab", line 3769, in main
    args.func(repo, args)
  File "/home/andre/bin/moz-phab", line 3018, in submit
    with temporary_file(message.encode("utf8")) as message_file:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 632: ordinal not in range(128)

The commit message contained the word "µ-benchmarks", which apparently caused this issue, because when I replaced it with "micro-benchmarks", moz-phab completed successfully.

ahh, thanks for the extra info anba.

Assignee: nobody → glob
Keywords: conduit-triaged
Priority: -- → P2
ERROR    2019-07-10 22:24:51,959 Traceback (most recent call last):
  File "/Users/byron/dev/conduit/review-globau/moz-phab", line 3780, in main
    args.func(repo, args)
  File "/Users/byron/dev/conduit/review-globau/moz-phab", line 3021, in submit
    with temporary_file(message.encode("utf8")) as message_file:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 43: ordinal not in range(128)

This change changes all output from hg and git to be unicode encoded.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: