[Mono-bugs] [Bug 643958] Resource directory in the project solution should be lowercase

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 29 09:06:35 EDT 2010



--- Comment #5 from Jonathan Pryor <jpryor at novell.com> 2010-10-29 13:06:34 UTC ---
Unfortunately, lowercasing things isn't everything.  While '.' is a valid
character, it can only occur _once_.  Try to create res/raw/foo.bar.baz.txt,
and you'll be treated to a build error; you'd instead need

(Plus, on a completely unrelated side note, Android is terribly brain damaged
when it comes to raw resources.  Specifically, if you use some undetermined set
of file extensions, it won't compress the file, but if you use an extension
outside of that set, it will.  Thus, res/raw/foo.txt is stored uncompressed, as
is res/raw/some_video.m4v, but store res/raw/mscorlib.dll and it's compressed.)

The more I use it, the more Android's resource system seems "baroque" and
inconsistent... which makes me even _less_ inclined to do "user-friendly"
things behind the user's poor back (lower case strings, s/./_/g, etc.) as it
becomes hard to reason about what the actual results will be.

On the flip side, doing all these "magical" things _would_ make developers
lives easier...until the magical things bit them in the ass.  How would that
happen?  I have no idea, but I similarly have little doubt that it could

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list