mail-archives/mono-bugs/2010-October/105622.html

90 строки
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 643958] Resource directory in the project solution should be lowercase
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20643958%5D%20Resource%20directory%20in%20the%20project%20solution%0A%20should%20be%20lowercase&In-Reply-To=bug-643958-28286%40http.bugzilla.novell.com/">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="105609.html">
<LINK REL="Next" HREF="104543.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 643958] Resource directory in the project solution should be lowercase</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20643958%5D%20Resource%20directory%20in%20the%20project%20solution%0A%20should%20be%20lowercase&In-Reply-To=bug-643958-28286%40http.bugzilla.novell.com/"
TITLE="[Mono-bugs] [Bug 643958] Resource directory in the project solution should be lowercase">bugzilla_noreply at novell.com
</A><BR>
<I>Fri Oct 29 09:06:35 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="105609.html">[Mono-bugs] [Bug 643958] Resource directory in the project solution should be lowercase
</A></li>
<LI>Next message: <A HREF="104543.html">[Mono-bugs] [Bug 642144] Calling ChildActionExtensions.Action or .RenderAction from a template causes an exception in runtime
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#105622">[ date ]</a>
<a href="thread.html#105622">[ thread ]</a>
<a href="subject.html#105622">[ subject ]</a>
<a href="author.html#105622">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=643958">https://bugzilla.novell.com/show_bug.cgi?id=643958</A>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=643958#c5">https://bugzilla.novell.com/show_bug.cgi?id=643958#c5</A>
--- Comment #5 from Jonathan Pryor &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">jpryor at novell.com</A>&gt; 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
res/raw/foo_bar_baz.txt.
(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 &quot;baroque&quot; and
inconsistent... which makes me even _less_ inclined to do &quot;user-friendly&quot;
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 &quot;magical&quot; 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
happen.
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="105609.html">[Mono-bugs] [Bug 643958] Resource directory in the project solution should be lowercase
</A></li>
<LI>Next message: <A HREF="104543.html">[Mono-bugs] [Bug 642144] Calling ChildActionExtensions.Action or .RenderAction from a template causes an exception in runtime
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#105622">[ date ]</a>
<a href="thread.html#105622">[ thread ]</a>
<a href="subject.html#105622">[ subject ]</a>
<a href="author.html#105622">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>