Coder Social home page Coder Social logo

Comments (6)

okulev avatar okulev commented on July 20, 2024

Created [attachment 13](http://bugs.locamotion.org/attachment.cgi?id=13)

Fixed escaping of .properties files

from translate.

davidfraser avatar davidfraser commented on July 20, 2024

Note that Mozilla .properties files already differ from Java properties files in
the exact escaped unicode characters they support…
Mozilla supports \u or \U followed by up to 4 valid hexademical characters (it
will handle 1, 2, or 3 and stop at the first non-hexadecimal character).
The java spec requires \u followed by exactly 4 hexadecimal characters:
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#100850

Also I think trying to change Mozilla’s handling of properties files is
something that should be left till after Firefox/Thunderbird 1.5 if it is done
at all…

from translate.

okulev avatar okulev commented on July 20, 2024

Yes, Mozilla .properties already differ from Java .properties but I still think
that it’s better if Java syntax is used for output and recognized as input so
that there are no surprises when processing with other tools.

from translate.

okulev avatar okulev commented on July 20, 2024

Created [attachment 31](http://bugs.locamotion.org/attachment.cgi?id=31)

Updated patch for CVS HEAD

This is the same patch but it applies to CVS HEAD without offsets.

from translate.

dwaynebailey avatar dwaynebailey commented on July 20, 2024

The .properties handling as we have it is designed to manage .properties as they
are used in Mozilla. We want to conform to their idiosyncrosies not to the Java
standard. Therefore. I’m closing this bug.

If there are specific properties bugs that prevent us performing a complete
roundtrip for a Mozilla properties files then please report those as separate bugs.

There is a need to have a Java conformant .properties handling storage module so
that we can handle those correctly. I will raise a separate bug for that.

from translate.

dwaynebailey avatar dwaynebailey commented on July 20, 2024

bug #114 deals with Java .properties conformance

from translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.