-
Notifications
You must be signed in to change notification settings - Fork 51
Add note about Java UTF-8 source in Insight. #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
developers/Insight/Contributing.txt
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use :menuselection:Preferences --> General --> Workspace --> Text file encoding``
|
Should this apply across the whole codebase, rather than just for Insight? Python and Javascript too? There's an incomplete page on development standards: http://www.openmicroscopy.org/site/support/omero4/developers/standards.html |
|
Yes, I was wondering that too. The phrasing of the development standards page is very much "this is what we were thinking at a certain point, we'll get around to deciding in due course" rather than an "up-to-date thinking". It does feel like this should go into that page, but maybe as part of a larger overhaul? |
|
The developer standards page is on the review & update list (if one of you wants to volunteer, be my guest ;)). There is also https://www.openmicroscopy.org/site/support/omero4/developers/policies.html which may be an appropriate place for this possibly? |
|
if we add it to the policies page, it will get lost. Adding to the code template will probably be better.. |
|
@jburel, I disagree. Anything that's across the whole code base should be on both, otherwise rebasing will be a nightmare. |
|
Discussing where this should go: I agree about |
|
@joshmoore i think we were talking about 2 different things. this pr is not the place for that discussion. |
|
@jburel, assuming you're talking about the breaking changes in OMERO 5, agreed. So, focusing on the UTF-8 section the opinions that are mentioned here are:
Did I miss anything? |
|
How about put it in |
|
That'd be my vote. |
|
sounds fine. Sorry catching up with comments. (I did not check e-mails) |
|
Did we decide on whether this should be Java only or across all languages? |
|
Not that I noticed. Perhaps I should add that question to http://trac.openmicroscopy.org.uk/ome/ticket/10288 |
|
@manics, I'd vote yes. |
|
Sorry, to all languages. Python certainly makes sense. I don't know if there's any problem with doing UTF-8 in C++ land. @rleigh-dundee / @JesseCorrington ? |
|
Also, just as I tweaked the |
|
On 14/02/13 13:41, Josh Moore wrote:
Certainly works well in GCC-land. UTF-8 is its default input encoding, Except on Windows... Other compilers might be more picky, and this #pragma execution_character_set("utf-8") http://www.utf8everywhere.org/ So looks like it's definitely possible. An alternative for Windows Roger The University of Dundee is a registered Scottish Charity, No: SC015096 |
|
On 14/02/13 14:17, Roger Leigh wrote:
One other note: C++11 introduces u8"", u"" and U"" for UTF-8, UTF-16 and // Unicode literals The [w]string classes have the appropriate ctors, etc. Not sure how Roger The University of Dundee is a registered Scottish Charity, No: SC015096 |
|
Yes, definitely will need to solicit text for C++, Python, whatever else. (I don't know to what extent the "contributing to Insight" page needs those, although the more general page does.) I also don't know enough about our build-time file generation to be sure if generation steps will be happily preserving UTF-8, if that's an issue? I don't know if UTF-8 may creep into model definition or ICE files. |
|
Python requires a source header comment: which brings us back to @jburel's comment about templates and when to introduce them. |
|
The Python header example definitely specifies that UTF-8 is the way to go, but we could add a comment to be even more explicit: https://github.com/openmicroscopy/openmicroscopy/blob/develop/docs/headers.txt#L136 |
|
Unfortunately we did not take the time to discuss a plan last week. Maybe add @joshmoore's suggestion i.e. be more explicit and schedule a discussion this week |
|
Following discussion in recent standup, here's a revised commit. |
|
Good to merge |
|
👍 |
Add note about Java UTF-8 source in Insight.
ome/openmicroscopy#721 changes some Insight code to use UTF-8 literals in response to comments in ome/openmicroscopy#690