Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Updating file path support for Windows 7 64 bit #263

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

ejzn
Copy link
Contributor

@ejzn ejzn commented Feb 27, 2013

No description provided.

@ejzn
Copy link
Contributor Author

ejzn commented Feb 27, 2013

@tracyli @ishneur Can we get this regression tested on Windows 7/XP as well as Mac? We need to make sure that the localization icons are changing properly as well as the splash screens.

@nukulb
Copy link
Contributor

nukulb commented Feb 27, 2013

Same change needs to be made for the cordova repo as well @bhiggins advise please

Sent from my BlackBerry 10 smartphone.

From: Erik Johnson
Sent: Wednesday, February 27, 2013 8:38 AM
To: blackberry/BB10-Webworks-Packager
Reply To: blackberry/BB10-Webworks-Packager
Subject: [BB10-Webworks-Packager] Updating file path support for Windows 7 64 bit (#263)


You can merge this Pull Request by running

git pull https://github.com/blackberry-webworks/BB10-Webworks-Packager erik/i18n

Or view, comment on, or merge it at:

#263

Commit Summary

  • Updating file path support for Windows 7 64 bit

File Changes

Patch Links:


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

@ishneur
Copy link

ishneur commented Feb 28, 2013

Tested on Windows 7 and XP. Both the icon and the splash screen change after changing the language.

@bryanhiggins
Copy link
Contributor

patch applied to cordova repo

@tracyli
Copy link

tracyli commented Mar 1, 2013

tested on winxp and mac: icon and splash screen worked well when changing the language.

@@ -127,7 +127,7 @@ function generateLocalizedMetadata(session, config, xmlObject, key) {
if (pkgrUtils.isWindows()) {

localeFiles.forEach(function (file) {
file = path.relative(path.resolve(session.sourceDir, "locales"), file).replace(/\\/g, "/");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure we aren't breaking something here? Seems odd that we would go to the trouble of resolving the locales directory and then determining the relative path from it when it's not required. Do we really just need to replace slashes here? @rwmtse Were you the original implementor of this code? Are we breaking some use cases here? Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't path.normalize change the slashes appropriately? It would seem better to use that instead of find and replace.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, I remember seeing some weird behavior with path.normalize in that it would convert forward slashes to backslashes for Windows, but not the other way around.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikjohnzon and I tested and it converted to windows fine, but it seemed to do double blackslashes which may be the root of the issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If @rwmtse has no other input and it passes all of our tests no reason not to go ahead with it.

@ejzn
Copy link
Contributor Author

ejzn commented Mar 11, 2013

bump.

@bryanhiggins
Copy link
Contributor

@jkeshavarzi @jeffheifetz are there still concerns with this? it has been outstanding for a while now

@bryanhiggins
Copy link
Contributor

@jkeshavarzi @jeffheifetz ?

@timwindsor
Copy link

Should this be closed now, or pulled in?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants