'Replace fields with supplemental information from a previous
pax extended or global header.'

def _apply_pax_info(self, pax_headers, encoding, errors):

    for (keyword, value) in pax_headers.iteritems():
        if (keyword not in PAX_FIELDS):
            continue
        if (keyword == 'path'):
            value = value.rstrip('/')
        if (keyword in PAX_NUMBER_FIELDS):
            try:
                value = PAX_NUMBER_FIELDS[keyword](value)
            except ValueError:
                value = 0
        else:
            value = uts(value, encoding, errors)
        setattr(self, keyword, value)
    self.pax_headers = pax_headers.copy()
