BSD Ports

converters/py-webencodings 0.5.1_1 FreeBSD

Character encoding aliases for legacy web content

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
converters, www, python
Package size
20.6 KiB, 100.5 KiB installed

Description

In order to be compatible with legacy web content when interpreting something like Content-Type: text/html; charset=latin1, tools need to use a particular set of aliases for encoding labels as well as some overriding rules.

For example, US-ASCII and iso-8859-1 on the web are actually aliases for windows-1252, and an UTF-8 or UTF-16 BOM takes precedence over any other encoding declaration.

The Encoding standard defines all such details so that implementations do not have to reverse-engineer each other.

This module has encoding labels and BOM detection, but the actual implementation for encoders and decoders is Python's.

In the other systems

SystemPortVersion
FreeBSDconverters/py-webencodings0.5.1_1
DragonFlyconverters/py-webencodings0.5.1_1
MidnightBSDconverters/py-webencodings0.5.1_1
HardenedBSDconverters/py-webencodings0.5.1_1
GhostBSDconverters/py-webencodings0.5.1_1
OPNsenseconverters/py-webencodings0.5.1_1

Install

Binary package:

pkg install py312-webencodings

From the ports tree:

cd /usr/ports/converters/py-webencodings/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-webencodings>0:converters/py-webencodings

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.5.1_10.5.1_10.5.10.5.1_10.5.1_1
FreeBSD:14:quarterly0.5.1_10.5.1_1n/a0.5.1_10.5.1_1
FreeBSD:15:latest0.5.1_10.5.1_1n/a0.5.1_10.5.1_1
FreeBSD:15:quarterly0.5.1_10.5.1_1n/an/an/a
FreeBSD:16:latest0.5.1_10.5.1_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 11
Run dependencies 7
Required by 274

The first 100 are listed.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
webencodings-0.5.1.tar.gz9721b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.