Closed Bug 265109 Opened 20 years ago Closed 20 years ago

Use different character encoding for different platforms for README.txt

Categories

(Firefox Build System :: General, defect)

1.0 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vberon, Assigned: vberon)

References

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file, 1 obsolete file)

Use the same character encoding for README.txt as the installer, as different
platforms are better suited with different character encodings.

The version in CVS will always be in UTF-8.

Basically, I plan to include charset.mk in the browser/locales/Makefile and then
use iconv to convert from UTF-8 to the specific codepage used on Windows for
that language, to get a README.txt well encoded for each platform.
This should fix it.
Comment on attachment 162592 [details] [diff] [review]
Use different encoding for README.txt based on platform used

Requesting review and approval-aviary.
Attachment #162592 - Flags: review?(bsmedberg)
Attachment #162592 - Flags: approval-aviary?
Comment on attachment 162592 [details] [diff] [review]
Use different encoding for README.txt based on platform used

Please rename README_FILES to README_FILE

>+include $(topsrcdir)/toolkit/locales/$(AB_CD)/installer/windows/charset.mk

We should only include this file if we're on the win32 case, and we should only
call iconv on non-en-US win32, so something like this:

> libs:: $(addprefix $(AB_CD)/,$(README_FILES))
>-	$(INSTALL) $^ $(DIST)/bin
>+	iconv -f UTF-8 -t $(README_CHARSET) $^ > $(DIST)/bin/$(README_FILES)

if

> 
> libs realchrome:: $(addprefix $(AB_CD)/profile/,$(PROFILE_FILES))
> 	$(INSTALL) $^ $(DIST)/bin/defaults/profile
> 
> libs realchrome:: $(addprefix $(AB_CD)/profile/chrome/,$(PROFILE_CHROME))
> 	$(INSTALL) $^ $(DIST)/bin/defaults/profile/chrome
> 
> install:: $(addprefix $(AB_CD)/profile/,$(PROFILE_FILES))
Attachment #162592 - Flags: review?(bsmedberg)
Attachment #162592 - Flags: review-
Attachment #162592 - Flags: approval-aviary?
Comment on attachment 162596 [details] [diff] [review]
Use different encoding for README.txt based on platform used, take 2

README_FILES will likely contain the license file in the near future.
Adresses issues discussed on IRC.
Attachment #162596 - Flags: review?(bsmedberg)
Attachment #162596 - Flags: review?(bsmedberg)
Attachment #162596 - Flags: review+
Attachment #162596 - Flags: approval-aviary?
Comment on attachment 162596 [details] [diff] [review]
Use different encoding for README.txt based on platform used, take 2

a=asa for aviary checkin.
Attachment #162596 - Flags: approval-aviary? → approval-aviary+
Fixed on branch, doesn't apply to trunk yet
Status: NEW → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: