Project

General

Profile

Bug #13122

x11/diagnostic/dpyinfo manifest has bad character encoding

Added by matt farnsworth 3 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

pkg info ## fails with exception
pkg: 'ascii' codec can't encode character '\u2212' in position 28: ordinal not in range(128)

from file in: /var/pkg/publisher/openindiana.org/pkg/
x11%2Fdiagnostic%2Fxdpyinfo/1.3.2%2C5.11-2020.0.1.1%3A20200330T164044Z

less decodes this as:
set name=pkg.summary value="xdpyinfo <E2><88><92> display information utility for X"

Ascii set uses: dash==hyphen==minus
Some word processors may change -- to unicode hyphen "smart character"
Perhaps this is what happened here?

#1

Updated by Andreas Wacknitz 2 months ago

When have you updated your OI installion last? We had this kind of problem in the past but it has been fixed with a pkg update.
pkg info userland-incorporation
should give you the information. In my environment I cannot reproduce your problem.

#2

Updated by matt farnsworth 2 months ago

userland-incorporation updated 04.sep.2020 branch 2020.0.1.13390
The version of dpyinfo is included in the file name.

Previous update nov-2019, original install 2018.

cksum $file
2725769038 3074

#3

Updated by matt farnsworth 2 months ago

I tried to update again. I got 1 install and 429 updates. The problem remains.

I had to hack the pkg engine to get update to work, because of a server problem at the pkg.openindiana.org site. The server may respond 400 Bad Request to a valid request. I have inspected the requests with tcpdump. The specific file associated with the failure varies.

The hack is contrary to http protocol specifications and not recommended, but does force update to work...
/usr/lib/python3.5/vendor-packages/pkg/client/transport/engine.py
@315
CurlTransportEngine.__cleanup_requests
insert:
if respcode == 400:
ex.retryable = True

Also available in: Atom PDF