Lines Matching refs:encoding
113 static void buildrecord(struct cat_attr *attrp, cnid_t cnid, int std_hfs, u_int32_t encoding, CatalogRecord *crp, u_int32_t *recordSize);
117 static int builddesc(const HFSPlusCatalogKey *key, cnid_t cnid, u_long hint, u_long encoding,
122 static void promotekey(struct hfsmount *hfsmp, const HFSCatalogKey *hfskey, HFSPlusCatalogKey *keyp, u_long *encoding);
246 u_long encoding;
250 promotekey(hfsmp, (HFSCatalogKey *)key, pluskey, &encoding);
254 encoding = getencoding(recp);
257 builddesc(pluskey, getcnid(recp), 0, encoding, isadir(recp), descp);
338 // update desc text encoding so that other catalog ops succeed
462 u_long encoding;
465 promotekey(hfsmp, &keyp->hfs, pluskey, &encoding);
466 builddesc(pluskey, cnid, 0, encoding, isdir, outdescp);
614 u_long encoding = 0;
630 /* Save the cnid and encoding now in case there's a hard link */
632 encoding = getencoding(recp);
760 promotekey(hfsmp, (HFSCatalogKey *)&iterator->key, pluskey, &encoding);
765 builddesc(pluskey, cnid, hint, encoding, isadir(recp), descp);
803 u_long encoding = kTextEncodingMacRoman;
838 encoding = hfs_pickencoding(bto->key.nodeName.unicode,
840 hfs_setencodingbits(hfsmp, encoding);
896 buildrecord(attrp, nextCNID, std_hfs, encoding, &bto->data, &datalen);
930 promotekey(hfsmp, (HFSCatalogKey *)&bto->iterator.key, pluskey, &encoding);
936 encoding, S_ISDIR(attrp->ca_mode), out_descp);
989 u_long encoding = 0;
1092 * Update the text encoding (on disk and in descriptor).
1094 * Note that hardlink inodes don't require a text encoding hint.
1099 encoding = hfs_pickencoding(to_key->nodeName.unicode, to_key->nodeName.length);
1100 hfs_setencodingbits(hfsmp, encoding);
1101 recp->hfsPlusFile.textEncoding = encoding;
1103 out_cdp->cd_encoding = encoding;
1226 promotekey(hfsmp, (HFSCatalogKey *)&to_iterator->key, pluskey, &encoding);
1228 /* Save the real encoding hint in the Finder Info (field 4). */
1240 encoding, directory, out_cdp);
1513 /* Note: directory hardlink inodes don't require a text encoding hint. */
1576 * Note: file hardlink inodes don't require a text encoding
1972 u_long encoding;
2004 /* This is our only chance to set the encoding (other than a rename). */
2005 encoding = hfs_pickencoding(bto->key.nodeName.unicode, bto->key.nodeName.length);
2048 buildrecord(attrp, nextCNID, 0, encoding, &bto->data, &datalen);
2383 u_long encoding;
2389 promotekey(hfsmp, (const HFSCatalogKey *)key, pluskey, &encoding);
2390 builddesc(pluskey, getcnid(rec), 0, encoding, isadir(rec), &cep->ce_desc);
2757 /* Check result returned from encoding the filename to utf8 */
2940 * volume encoding we use MacRoman as a fallback.
3413 * XXX need to save the encoding that succeeded
3623 buildrecord(struct cat_attr *attrp, cnid_t cnid, int std_hfs, u_int32_t encoding,
3662 crp->hfsPlusFolder.textEncoding = encoding;
3678 crp->hfsPlusFile.textEncoding = encoding;
3704 builddesc(const HFSPlusCatalogKey *key, cnid_t cnid, u_long hint, u_long encoding,
3746 descp->cd_encoding = encoding;
3872 HFSPlusCatalogKey *keyp, u_long *encoding)
3878 *encoding = hfsmp->hfs_encoding;
3884 * encoding use MacRoman as a fallback.
3887 *encoding = 0;
4044 * Extract the text encoding from a catalog node record.
4049 u_long encoding;
4052 encoding = crp->hfsPlusFolder.textEncoding;
4054 encoding = crp->hfsPlusFile.textEncoding;
4056 encoding = 0;
4058 return (encoding);